mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/rtsp: fix parse_rtsp_message
1. Remove the assumption that the message method is TEARDOWN. 2. Don't ignore the error code of ff_rtsp_parse_streaming_commands. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
0b1d8468c4
commit
a191d4166f
@ -1964,11 +1964,7 @@ static int parse_rtsp_message(AVFormatContext *s)
|
||||
|
||||
if (rt->rtsp_flags & RTSP_FLAG_LISTEN) {
|
||||
if (rt->state == RTSP_STATE_STREAMING) {
|
||||
if (!ff_rtsp_parse_streaming_commands(s))
|
||||
return AVERROR_EOF;
|
||||
else
|
||||
av_log(s, AV_LOG_WARNING,
|
||||
"Unable to answer to TEARDOWN\n");
|
||||
return ff_rtsp_parse_streaming_commands(s);
|
||||
} else
|
||||
return AVERROR_EOF;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user