diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-07 01:24:01 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-07 01:24:01 +0000 |
commit | 99b2ac0797ea9ef5ef79ef1e4c42240551fd28e1 (patch) | |
tree | ab410417bded0b25c896b2e4ff9b188642fafa45 /libavformat | |
parent | 1256d16b6cf937c180bb898a37e1c79a27b79922 (diff) | |
download | ffmpeg-99b2ac0797ea9ef5ef79ef1e4c42240551fd28e1.tar.gz |
Reindent after previous patch.
Originally committed as revision 15236 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 20e706229b..fddd60843b 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1372,21 +1372,21 @@ static int rtsp_read_play(AVFormatContext *s) av_log(s, AV_LOG_DEBUG, "hello state=%d\n", rt->state); if (!(rt->server_type == RTSP_SERVER_RDT && rt->need_subscription)) { - if (rt->state == RTSP_STATE_PAUSED) { - snprintf(cmd, sizeof(cmd), - "PLAY %s RTSP/1.0\r\n", - s->filename); - } else { - snprintf(cmd, sizeof(cmd), - "PLAY %s RTSP/1.0\r\n" - "Range: npt=%0.3f-\r\n", - s->filename, - (double)rt->seek_timestamp / AV_TIME_BASE); - } - rtsp_send_cmd(s, cmd, reply, NULL); - if (reply->status_code != RTSP_STATUS_OK) { - return -1; - } + if (rt->state == RTSP_STATE_PAUSED) { + snprintf(cmd, sizeof(cmd), + "PLAY %s RTSP/1.0\r\n", + s->filename); + } else { + snprintf(cmd, sizeof(cmd), + "PLAY %s RTSP/1.0\r\n" + "Range: npt=%0.3f-\r\n", + s->filename, + (double)rt->seek_timestamp / AV_TIME_BASE); + } + rtsp_send_cmd(s, cmd, reply, NULL); + if (reply->status_code != RTSP_STATUS_OK) { + return -1; + } } rt->state = RTSP_STATE_PLAYING; return 0; @@ -1404,13 +1404,13 @@ static int rtsp_read_pause(AVFormatContext *s) if (rt->state != RTSP_STATE_PLAYING) return 0; else if (!(rt->server_type == RTSP_SERVER_RDT && rt->need_subscription)) { - snprintf(cmd, sizeof(cmd), - "PAUSE %s RTSP/1.0\r\n", - s->filename); - rtsp_send_cmd(s, cmd, reply, NULL); - if (reply->status_code != RTSP_STATUS_OK) { - return -1; - } + snprintf(cmd, sizeof(cmd), + "PAUSE %s RTSP/1.0\r\n", + s->filename); + rtsp_send_cmd(s, cmd, reply, NULL); + if (reply->status_code != RTSP_STATUS_OK) { + return -1; + } } rt->state = RTSP_STATE_PAUSED; return 0; |