Commit e7a43d2a authored by Christophe Massiot's avatar Christophe Massiot

Backported fix for EOF of ES-only streams.

parent b5c60904
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_es.c: Elementary Stream demux and packet management * input_es.c: Elementary Stream demux and packet management
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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 <massiot@via.ecp.fr> * Author: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -201,6 +201,12 @@ static int ESRead( input_thread_t * p_input, ...@@ -201,6 +201,12 @@ static int ESRead( input_thread_t * p_input,
return( -1 ); return( -1 );
} }
/* EOF */
if( i_read == 0 && p_input->stream.b_seekable )
{
return( 1 );
}
input_NetlistMviovec( p_input->p_method_data, input_NetlistMviovec( p_input->p_method_data,
(int)(i_read/ES_PACKET_SIZE), pp_packets ); (int)(i_read/ES_PACKET_SIZE), pp_packets );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment