[vlc-devel] commit: goom: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )

git version control git at videolan.org
Mon Dec 7 18:23:25 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 18:23:15 2009 +0100| [0bf004283af0d6ddb956ad604b503bf8f8d52b88] | committer: Rafaël Carré 

goom: use VLC_TS_INVALID (refs #3135)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0bf004283af0d6ddb956ad604b503bf8f8d52b88
---

 modules/visualization/goom.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index 90572e4..26d9a9d 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 );
 




More information about the vlc-devel mailing list