]> git.sesse.net Git - vlc/commitdiff
input/es_out : use VLC_TS_INVALID (refs #3135)
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 17:30:30 +0000 (18:30 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 17:30:30 +0000 (18:30 +0100)
src/input/es_out.c

index 827f282f55aa5d2c69acc91ceea1bcbed279fe86..e5a9793cade921e5b53fc4b67aa7fbf91412d52f 100644 (file)
@@ -1903,7 +1903,7 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
     if( p_sys->i_preroll_end >= 0 )
     {
         int64_t i_date = p_block->i_pts;
-        if( i_date <= 0 )
+        if( p_block->i_pts <= VLC_TS_INVALID )
             i_date = p_block->i_dts;
 
         if( i_date < p_sys->i_preroll_end )