[vlc-commits] demux/mpeg: decrease diagnostic verbosity
Filip Roséen
git at videolan.org
Thu May 18 18:21:22 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:59:17 2017 +0200| [0138e836b4ed4ee20157752a773b180ff5b32ce0] | committer: 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 <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0138e836b4ed4ee20157752a773b180ff5b32ce0
---
modules/demux/mpeg/es.c | 2 +-
modules/demux/mpeg/mpgv.c | 2 +-
modules/demux/mpeg/ps.c | 2 +-
modules/demux/mpeg/ts.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index 84a58c6d15..3fa6b8cfc8 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -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 ) )
diff --git a/modules/demux/mpeg/mpgv.c b/modules/demux/mpeg/mpgv.c
index 9773d902b5..6a44f27dea 100644
--- a/modules/demux/mpeg/mpgv.c
+++ b/modules/demux/mpeg/mpgv.c
@@ -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;
}
diff --git a/modules/demux/mpeg/ps.c b/modules/demux/mpeg/ps.c
index c6d564f07b..35cc91b7ba 100644
--- a/modules/demux/mpeg/ps.c
+++ b/modules/demux/mpeg/ps.c
@@ -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;
}
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 10ffda4074..1b100e6dc0 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -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 &&
More information about the vlc-commits
mailing list