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

spyfeng subversion at mplayerhq.hu
Sun Aug 1 10:28:01 CEST 2010


Author: spyfeng
Date: Sun Aug  1 10:28:01 2010
New Revision: 5881

Log:
remove usless varible in MMSTContext.

Modified:
   mms/mmst.c

Modified: mms/mmst.c
==============================================================================
--- mms/mmst.c	Sun Aug  1 10:23:18 2010	(r5880)
+++ mms/mmst.c	Sun Aug  1 10:28:01 2010	(r5881)
@@ -47,7 +47,6 @@ typedef struct {
     int incoming_flags;                  ///< Incoming packet flags.
     int packet_id;                       ///< Identifier for packets in the current stream.
     unsigned int header_packet_id;       ///< default is 2.
-    int is_playing;
 } MMSTContext;
 
 
@@ -597,7 +596,7 @@ static int mms_read(URLContext *h, uint8
     int size_to_copy;
     MMSContext *mms = mmst_ctx->ff_ctx;
     do {
-        if(mms->asf_header_read_size < mms->asf_header_size && !mmst_ctx->is_playing) {
+        if(mms->asf_header_read_size < mms->asf_header_size) {
             /* Read from ASF header buffer */
             size_to_copy= FFMIN(size,
                                 mms->asf_header_size - mms->asf_header_read_size);
@@ -608,7 +607,6 @@ static int mms_read(URLContext *h, uint8
                    size_to_copy, mms->asf_header_size - mms->asf_header_read_size);
             if (mms->asf_header_size == mms->asf_header_read_size) {
                 av_freep(&mms->asf_header);
-                mmst_ctx->is_playing = 1;
             }
         } else if(mms->remaining_in_len) {
             /* Read remaining packet data to buffer.


More information about the FFmpeg-soc mailing list