]> git.sesse.net Git - vlc/commitdiff
Fixed potential race condition in clock.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 14 Jul 2009 00:03:30 +0000 (02:03 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 15 Jul 2009 17:15:15 +0000 (19:15 +0200)
src/input/clock.c

index 6c0e32700c14600801cf040f7745abe97c5d4333..ab83325ca13c7a6e0253f6206c42316319a03e1f 100644 (file)
@@ -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;