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

spyfeng subversion at mplayerhq.hu
Sun Mar 21 09:00:15 CET 2010


Author: spyfeng
Date: Sun Mar 21 09:00:15 2010
New Revision: 5695

Log:
use if...else... instead of if... clause.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sun Mar 21 08:52:06 2010	(r5694)
+++ mms/mmst.c	Sun Mar 21 09:00:15 2010	(r5695)
@@ -405,12 +405,10 @@ static MMSSCPacketType get_tcp_server_re
 
     if (packet_type == SC_PKT_KEEPALIVE) {
         send_keepalive_packet(mms);
-    }
-    if (packet_type == SC_PKT_STREAM_CHANGING) {
+    } else if (packet_type == SC_PKT_STREAM_CHANGING) {
         handle_packet_stream_changing_type(mms);
         //TODO: Handle new header when change the stream type.
-    }
-    if (packet_type == SC_PKT_ASF_MEDIA) {
+    } else if (packet_type == SC_PKT_ASF_MEDIA) {
         pad_media_packet(mms);
     }
     return packet_type;


More information about the FFmpeg-soc mailing list