aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-09-01 13:51:24 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-09-01 13:51:24 +0000
commit5f86057ffd534abb42fada9f0abf88409f6b51d2 (patch)
tree4fafbcf80f3ef4a2de6bfe96c51ed4e0dcaa67b1
parentd6bb9ebdc605d3e28b9224cea9ecad822233ba52 (diff)
downloadffmpeg-5f86057ffd534abb42fada9f0abf88409f6b51d2.tar.gz
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
-rw-r--r--libavformat/rtsp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 0c60b83fdc..33aa894428 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1343,10 +1343,9 @@ static int rtsp_read_play(AVFormatContext *s)
rtsp_send_cmd(s, cmd, reply, NULL);
if (reply->status_code != RTSP_STATUS_OK) {
return -1;
- } else {
- rt->state = RTSP_STATE_PLAYING;
- return 0;
}
+ rt->state = RTSP_STATE_PLAYING;
+ return 0;
}
/* pause the stream */
@@ -1367,10 +1366,9 @@ static int rtsp_read_pause(AVFormatContext *s)
rtsp_send_cmd(s, cmd, reply, NULL);
if (reply->status_code != RTSP_STATUS_OK) {
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,