[vlc-devel] commit: Fixed potential race condition in clock. (Laurent Aimar )

git version control git at videolan.org
Fri Oct 23 23:14:52 CEST 2009


vlc | branch: 1.0-bugfix | Laurent Aimar <fenrir at videolan.org> | Tue Jul 14 02:03:30 2009 +0200| [60d3b85175a6b6c367097f637d4efc4ea26e1a80] | committer: Laurent Aimar 

Fixed potential race condition in clock.
(cherry picked from commit fffc29ff8f65e37045209563f475096880d1f746)

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

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

diff --git a/src/input/clock.c b/src/input/clock.c
index 6c0e327..ab83325 100644
--- a/src/input/clock.c
+++ b/src/input/clock.c
@@ -396,7 +396,7 @@ int input_clock_ConvertTS( input_clock_t *cl,
 
     /* Check ts validity */
     if( i_ts_bound != INT64_MAX &&
-        *pi_ts0 > VLC_TS_INVALID && *pi_ts0 >= mdate() + cl->i_pts_delay + i_ts_bound )
+        *pi_ts0 > VLC_TS_INVALID && *pi_ts0 >= mdate() + i_pts_delay + i_ts_bound )
         return VLC_EGENERIC;
 
     return VLC_SUCCESS;




More information about the vlc-devel mailing list