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

spyfeng subversion at mplayerhq.hu
Fri May 21 18:36:57 CEST 2010


Author: spyfeng
Date: Fri May 21 18:36:57 2010
New Revision: 5810

Log:
add brackets for if() else.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Fri May 21 18:31:27 2010	(r5809)
+++ mms/mmst.c	Fri May 21 18:36:57 2010	(r5810)
@@ -605,9 +605,9 @@ static int mms_open(URLContext *h, const
     if (err)
         goto fail;
     err = mms_safe_send_recv(mms, NULL, SC_PKT_ASF_HEADER);
-    if (err)
+    if (err) {
         goto fail;
-    else {
+    } else {
         if((mms->incoming_flags == 0X08) || (mms->incoming_flags == 0X0C)) {
             ret = asf_header_parser(mms);
             if (ret < 0) {
@@ -672,10 +672,11 @@ static int mms_read(URLContext *h, uint8
             return result;
         // send media packet request
         result = mms_safe_send_recv(mms, send_media_packet_request, SC_PKT_MEDIA_PKT_FOLLOWS);
-        if (result)
+        if (result) {
             return result;
-        else
+        } else {
             mms->is_playing = 1;
+        }
     }
     return read_mms_packet(mms, buf, size);
 }


More information about the FFmpeg-soc mailing list