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

git version control git at videolan.org
Mon Dec 7 18:31:07 CET 2009


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

input/es_out : use VLC_TS_INVALID (refs #3135)

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

 src/input/es_out.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 827f282..e5a9793 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -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 )




More information about the vlc-devel mailing list