mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-05 03:58:00 +00:00
Remove useless "else" case in if X { A; return }; else { B }. See discussion
in "Realmedia patch" thread on mailinglist. Originally committed as revision 15142 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d6bb9ebdc6
commit
5f86057ffd
@ -1343,10 +1343,9 @@ static int rtsp_read_play(AVFormatContext *s)
|
|||||||
rtsp_send_cmd(s, cmd, reply, NULL);
|
rtsp_send_cmd(s, cmd, reply, NULL);
|
||||||
if (reply->status_code != RTSP_STATUS_OK) {
|
if (reply->status_code != RTSP_STATUS_OK) {
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
|
||||||
rt->state = RTSP_STATE_PLAYING;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
rt->state = RTSP_STATE_PLAYING;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pause the stream */
|
/* pause the stream */
|
||||||
@ -1367,10 +1366,9 @@ static int rtsp_read_pause(AVFormatContext *s)
|
|||||||
rtsp_send_cmd(s, cmd, reply, NULL);
|
rtsp_send_cmd(s, cmd, reply, NULL);
|
||||||
if (reply->status_code != RTSP_STATUS_OK) {
|
if (reply->status_code != RTSP_STATUS_OK) {
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
|
||||||
rt->state = RTSP_STATE_PAUSED;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
rt->state = RTSP_STATE_PAUSED;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtsp_read_seek(AVFormatContext *s, int stream_index,
|
static int rtsp_read_seek(AVFormatContext *s, int stream_index,
|
||||||
|
Loading…
Reference in New Issue
Block a user