X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fmpeg%2Finput_es.c;h=49b118f8f74a8be5d515b3d55c04ffbaddf0bcbf;hb=76a38c458ab92a2b02bb4de19ec8788bb00121b4;hp=1d16e3e819c3287ccfe49835ecc9c22586d34b8f;hpb=1b8d106c723cfe9a75449dbfe5cd5a4e677159a0;p=vlc diff --git a/plugins/mpeg/input_es.c b/plugins/mpeg/input_es.c index 1d16e3e819..49b118f8f7 100644 --- a/plugins/mpeg/input_es.c +++ b/plugins/mpeg/input_es.c @@ -2,7 +2,7 @@ * input_es.c: Elementary Stream demux and packet management ***************************************************************************** * Copyright (C) 2001 VideoLAN - * $Id: input_es.c,v 1.16 2001/12/07 18:33:07 sam Exp $ + * $Id: input_es.c,v 1.16.2.1 2001/12/10 15:56:57 massiot Exp $ * * Author: Christophe Massiot * @@ -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 );