Commit 0138e836 authored by Filip Roséen's avatar Filip Roséen Committed by Rémi Denis-Courmont

demux/mpeg: decrease diagnostic verbosity

The relevant functions are only called during module probing, as such
the diagnostics are not worthy of being an "error" if invocation of
vlc_stream_Peek fails.

These changes simply decreases the verbosity of the diagnostics from
error to debug.
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent c084b38d
......@@ -1062,7 +1062,7 @@ static int AacProbe( demux_t *p_demux, int64_t *pi_offset )
/* peek the begining (10 is for adts header) */
if( vlc_stream_Peek( p_demux->s, &p_peek, 10 ) < 10 )
{
msg_Err( p_demux, "cannot peek" );
msg_Dbg( p_demux, "cannot peek" );
return VLC_EGENERIC;
}
if( !strncmp( (char *)p_peek, "ADIF", 4 ) )
......
......@@ -93,7 +93,7 @@ static int Open( vlc_object_t * p_this )
if( vlc_stream_Peek( p_demux->s, &p_peek, 4 ) < 4 )
{
msg_Err( p_demux, "cannot peek" );
msg_Dbg( p_demux, "cannot peek" );
return VLC_EGENERIC;
}
......
......@@ -138,7 +138,7 @@ static int OpenCommon( vlc_object_t *p_this, bool b_force )
i_peek = vlc_stream_Peek( p_demux->s, &p_peek, 16 );
if( i_peek < 16 )
{
msg_Err( p_demux, "cannot peek" );
msg_Dbg( p_demux, "cannot peek" );
return VLC_EGENERIC;
}
......
......@@ -208,7 +208,7 @@ static int DetectPacketSize( demux_t *p_demux, unsigned *pi_header_size, int i_o
int i_peek = i_offset + TS_PACKET_SIZE_MAX * 3 + i_sync + 1;
if( ( vlc_stream_Peek( p_demux->s, &p_peek, i_peek ) ) < i_peek )
{
msg_Err( p_demux, "cannot peek" );
msg_Dbg( p_demux, "cannot peek" );
return -1;
}
if( p_peek[i_offset + i_sync + 1 * TS_PACKET_SIZE_188] == 0x47 &&
......
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