stream_filter: smooth: fix peek error message
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 10 Jun 2015 19:47:04 +0000 (21:47 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 10 Jun 2015 19:47:04 +0000 (21:47 +0200)
modules/stream_filter/smooth/smooth.c

index b08dd7f..0585e23 100644 (file)
@@ -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;
     }