From: Rafaël Carré Date: Mon, 7 Dec 2009 17:23:15 +0000 (+0100) Subject: goom: use VLC_TS_INVALID (refs #3135) X-Git-Tag: 1.1.0-ff~2106 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0bf004283af0d6ddb956ad604b503bf8f8d52b88;p=vlc goom: use VLC_TS_INVALID (refs #3135) --- diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c index 90572e4dea..26d9a9d8b1 100644 --- a/modules/visualization/goom.c +++ b/modules/visualization/goom.c @@ -273,12 +273,12 @@ static int FillBuffer( int16_t *p_data, int *pi_data, p_block->i_buffer / sizeof(float) / p_this->i_channels ); /* Date management */ - if( p_block->i_pts > 0 && + if( p_block->i_pts > VLC_TS_INVALID && p_block->i_pts != date_Get( pi_date_end ) ) { date_Set( pi_date_end, p_block->i_pts ); } - p_block->i_pts = 0; + p_block->i_pts = VLC_TS_INVALID; date_Increment( pi_date_end, i_samples );