[FFmpeg-cvslog] r15142 - trunk/libavformat/rtsp.c
rbultje
subversion
Mon Sep 1 15:51:24 CEST 2008
Author: rbultje
Date: Mon Sep 1 15:51:24 2008
New Revision: 15142
Log:
Remove useless "else" case in if X { A; return }; else { B }. See discussion
in "Realmedia patch" thread on mailinglist.
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c (original)
+++ trunk/libavformat/rtsp.c Mon Sep 1 15:51:24 2008
@@ -1343,10 +1343,9 @@ static int rtsp_read_play(AVFormatContex
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(AVFormatConte
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,
More information about the ffmpeg-cvslog
mailing list