]> git.sesse.net Git - vlc/commitdiff
* es_out; round up PCR (avoid non null PCR -> null).
authorLaurent Aimar <fenrir@videolan.org>
Sat, 15 May 2004 10:54:10 +0000 (10:54 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 15 May 2004 10:54:10 +0000 (10:54 +0000)
src/input/es_out.c

index fa410c62d83bb3536cd8894dff0c17717daa8730..6f8265f78905e7cd70710428662b8281512052fe 100644 (file)
@@ -682,11 +682,11 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
                 }
             }
             i_pcr = (int64_t)va_arg( args, int64_t );
-
             /* search program */
             if( p_prgm )
             {
-                input_ClockManageRef( p_sys->p_input, p_prgm, i_pcr * 9 / 100);
+                /* 11 is a vodoo trick to avoid non_pcr*9/100 to be null */
+                input_ClockManageRef( p_sys->p_input, p_prgm, (i_pcr + 11 ) * 9 / 100);
             }
             p_sys->b_pcr_set = VLC_TRUE;
             return VLC_SUCCESS;