[vlc-devel] commit: sout_display: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 18:19:40 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 18:18:45 2009 +0100| [9f8f298264b273dcf39e6e608dbc1e14e03564ed] | committer: Rafaël Carré
sout_display: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f8f298264b273dcf39e6e608dbc1e14e03564ed
---
modules/stream_out/display.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/stream_out/display.c b/modules/stream_out/display.c
index 10f6a2c..a7cf827 100644
--- a/modules/stream_out/display.c
+++ b/modules/stream_out/display.c
@@ -206,13 +206,13 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
if( id->p_dec && p_buffer->i_buffer > 0 )
{
- if( p_buffer->i_dts <= 0 )
- p_buffer->i_dts= 0;
+ if( p_buffer->i_dts <= VLC_TS_INVALID )
+ p_buffer->i_dts = 0;
else
p_buffer->i_dts += p_sys->i_delay;
- if( p_buffer->i_pts <= 0 )
- p_buffer->i_pts= 0;
+ if( p_buffer->i_pts <= VLC_TS_INVALID )
+ p_buffer->i_pts = 0;
else
p_buffer->i_pts += p_sys->i_delay;
More information about the vlc-devel
mailing list