decoder: demote incorrect warning
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 23 Apr 2012 19:38:04 +0000 (22:38 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 3 May 2012 19:51:54 +0000 (22:51 +0300)
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.

src/input/decoder.c

index 0d8acee..e043448 100644 (file)
@@ -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 );
         }