changeset 3904:52e586c04402 libavformat

Reindent after previous patch.
author rbultje
date Sun, 07 Sep 2008 01:24:01 +0000
parents aeb79f68ba7e
children 91987686113d
files rtsp.c
diffstat 1 files changed, 22 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Sun Sep 07 01:22:18 2008 +0000
+++ b/rtsp.c	Sun Sep 07 01:24:01 2008 +0000
@@ -1372,21 +1372,21 @@
     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 @@
     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;