[FFmpeg-soc] [soc]: r5721 - mms/mmst.c

spyfeng subversion at mplayerhq.hu
Sat Mar 27 03:51:16 CET 2010


Author: spyfeng
Date: Sat Mar 27 03:51:16 2010
New Revision: 5721

Log:
modify indent style.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sat Mar 27 03:47:52 2010	(r5720)
+++ mms/mmst.c	Sat Mar 27 03:51:16 2010	(r5721)
@@ -646,28 +646,28 @@ static int mms_read(URLContext *h, uint8
     /* Since we read the header at open(), this shouldn't be possible */
     assert(mms->header_parsed);
 
-        if (mms->asf_header_read_pos >= mms->asf_header_size
-            && !mms->streaming_flag) {
-            dprintf(NULL, "mms_read() before play().\n");
-            clear_stream_buffers(mms);
-            result = send_stream_selection_request(mms);
-            if(result < 0)
-                return result;
-            if (get_tcp_server_response(mms) != SC_PKT_STREAM_ID_ACCEPTED) {
-                dprintf(NULL, "Can't get stream id accepted packet.\n");
-                return 0;
-            }
+    if (mms->asf_header_read_pos >= mms->asf_header_size
+        && !mms->streaming_flag) {
+        dprintf(NULL, "mms_read() before play().\n");
+        clear_stream_buffers(mms);
+        result = send_stream_selection_request(mms);
+        if(result < 0)
+            return result;
+        if (get_tcp_server_response(mms) != SC_PKT_STREAM_ID_ACCEPTED) {
+            dprintf(NULL, "Can't get stream id accepted packet.\n");
+            return 0;
+        }
 
-            // send media packet request
-            send_media_packet_request(mms);
-            if (get_tcp_server_response(mms) == SC_PKT_MEDIA_PKT_FOLLOWS) {
-               mms->streaming_flag = 1;
-            } else {
-                dprintf(NULL, "Canot get media follows packet from server.\n");
-                return 0;
-            }
+        // send media packet request
+        send_media_packet_request(mms);
+        if (get_tcp_server_response(mms) == SC_PKT_MEDIA_PKT_FOLLOWS) {
+           mms->streaming_flag = 1;
+        } else {
+            dprintf(NULL, "Canot get media follows packet from server.\n");
+            return 0;
         }
-        result = read_mms_packet(mms, buf, size);
+    }
+    result = read_mms_packet(mms, buf, size);
 
     return result;
 }


More information about the FFmpeg-soc mailing list