[vlc-commits] demux: ts: add better EOF message
Francois Cartegnie
git at videolan.org
Fri Feb 20 20:05:54 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 20 17:26:33 2015 +0100| [8a780282cf64736f6781af9b94e2fe7a4f89df72] | committer: Francois Cartegnie
demux: ts: add better EOF message
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a780282cf64736f6781af9b94e2fe7a4f89df72
---
modules/demux/ts.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 162ab62..9a6a241 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2393,7 +2393,10 @@ static block_t* ReadTSPacket( demux_t *p_demux )
/* Get a new TS packet */
if( !( p_pkt = stream_Block( p_sys->stream, p_sys->i_packet_size ) ) )
{
- msg_Dbg( p_demux, "eof ?" );
+ if( stream_Tell( p_sys->stream ) == stream_Size( p_sys->stream ) )
+ msg_Dbg( p_demux, "EOF at %"PRId64, stream_Tell( p_sys->stream ) );
+ else
+ msg_Dbg( p_demux, "Can't read TS packet at %"PRId64, stream_Tell(p_sys->stream) );
return NULL;
}
More information about the vlc-commits
mailing list