[vlc-commits] decoder: demote incorrect warning
Rémi Denis-Courmont
git at videolan.org
Mon Apr 23 21:47:38 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 23 22:38:04 2012 +0300| [ab75f3bd341e2da6057d6c494544efa27c4545f1] | committer: Rémi Denis-Courmont
decoder: demote incorrect warning
A discarded buffer is not necessarily in the future. It might simply be
that there is no output or that the playback rate is out of range.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab75f3bd341e2da6057d6c494544efa27c4545f1
---
src/input/decoder.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 0d8acee..e043448 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1209,7 +1209,6 @@ static void DecoderPlayAudio( decoder_t *p_dec, aout_buffer_t *p_audio,
}
/* */
- const bool b_dated = p_audio->i_pts > VLC_TS_INVALID;
int i_rate = INPUT_RATE_DEFAULT;
DecoderFixTs( p_dec, &p_audio->i_pts, NULL, &p_audio->i_length,
@@ -1233,11 +1232,7 @@ static void DecoderPlayAudio( decoder_t *p_dec, aout_buffer_t *p_audio,
}
else
{
- if( b_dated )
- msg_Warn( p_dec, "received buffer in the future" );
- else
- msg_Warn( p_dec, "non-dated audio buffer received" );
-
+ msg_Dbg( p_dec, "discarded audio buffer" );
*pi_lost_sum += 1;
aout_BufferFree( p_audio );
}
More information about the vlc-commits
mailing list