]> git.sesse.net Git - vlc/commitdiff
Fix for EOF of ES-only streams.
authorChristophe Massiot <massiot@videolan.org>
Mon, 10 Dec 2001 15:52:31 +0000 (15:52 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 10 Dec 2001 15:52:31 +0000 (15:52 +0000)
plugins/mpeg_system/input_es.c

index 99070ebad7e1b1d839256d67d724873b4e5ef1fb..4f6120cb32c9321dbeaf7cd704fadcf2b4f0555f 100644 (file)
@@ -2,7 +2,7 @@
  * input_es.c: Elementary Stream demux and packet management
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: input_es.c,v 1.2 2001/12/10 04:53:11 sam Exp $
+ * $Id: input_es.c,v 1.3 2001/12/10 15:52:31 massiot Exp $
  *
  * Author: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -201,6 +201,12 @@ static int ESRead( input_thread_t * p_input,
         return( -1 );
     }
 
+    /* EOF */
+    if( i_read == 0 && p_input->stream.b_seekable )
+    {
+        return( 1 );
+    }
+
     input_NetlistMviovec( p_input->p_method_data,
              (int)(i_read/ES_PACKET_SIZE), pp_packets );