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

spyfeng subversion at mplayerhq.hu
Sun Aug 1 10:14:50 CEST 2010


Author: spyfeng
Date: Sun Aug  1 10:14:50 2010
New Revision: 5879

Log:
reindent the code.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sun Aug  1 10:06:40 2010	(r5878)
+++ mms/mmst.c	Sun Aug  1 10:14:50 2010	(r5879)
@@ -619,18 +619,16 @@ static int mms_open(URLContext *h, const
     /* Since we read the header at open(), this shouldn't be possible */
     assert(mmst_ctx->ff_ctx->header_parsed);
 
-//    if (!mmst_ctx->is_playing) {
-        dprintf(NULL, "mms_read() before play().\n");
-        clear_stream_buffers(mmst_ctx);
-        err = mms_safe_send_recv(mmst_ctx, send_stream_selection_request, SC_PKT_STREAM_ID_ACCEPTED);
-        if (err)
-            goto fail;
-        // send media packet request
-        err = mms_safe_send_recv(mmst_ctx, send_media_packet_request, SC_PKT_MEDIA_PKT_FOLLOWS);
-        if (err) {
-            goto fail;
-        }
-//    }
+    dprintf(NULL, "mms_read() before play().\n");
+    clear_stream_buffers(mmst_ctx);
+    err = mms_safe_send_recv(mmst_ctx, send_stream_selection_request, SC_PKT_STREAM_ID_ACCEPTED);
+    if (err)
+        goto fail;
+    // send media packet request
+    err = mms_safe_send_recv(mmst_ctx, send_media_packet_request, SC_PKT_MEDIA_PKT_FOLLOWS);
+    if (err) {
+        goto fail;
+    }
 
     dprintf(NULL, "Leaving open (success)\n");
     return 0;


More information about the FFmpeg-soc mailing list