[vlc-commits] stream_filter: smooth: fix peek error message
Francois Cartegnie
git at videolan.org
Wed Jun 10 21:47:25 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 10 21:47:04 2015 +0200| [bdc8dd67687851529719ff6d2a2c026a620bad54] | committer: Francois Cartegnie
stream_filter: smooth: fix peek error message
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdc8dd67687851529719ff6d2a2c026a620bad54
---
modules/stream_filter/smooth/smooth.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/stream_filter/smooth/smooth.c b/modules/stream_filter/smooth/smooth.c
index b08dd7f..0585e23 100644
--- a/modules/stream_filter/smooth/smooth.c
+++ b/modules/stream_filter/smooth/smooth.c
@@ -825,7 +825,10 @@ static int Peek( stream_t *s, const uint8_t **pp_peek, unsigned i_peek )
chunk_t *chunk = get_chunk( s, true, NULL );
if( !chunk || !chunk->data )
{
- msg_Err( s, "peek %"PRIu64" or no data", (uint64_t) chunk );
+ if(!chunk)
+ msg_Err( s, "cannot peek: no data" );
+ else
+ msg_Err( s, "cannot peek: chunk pos %"PRIu64"", chunk->read_pos );
return 0;
}
More information about the vlc-commits
mailing list