]> git.sesse.net Git - vlc/commitdiff
* src/input/input.c: Put less picky fallback values for pts_delay and
authorChristophe Massiot <massiot@videolan.org>
Tue, 31 May 2005 15:10:02 +0000 (15:10 +0000)
committerChristophe Massiot <massiot@videolan.org>
Tue, 31 May 2005 15:10:02 +0000 (15:10 +0000)
   cr_average.

src/input/input.c

index fb02a6ff40538584a5b2d2256a7750f3b0b39b57..1c2d5d839e55729256745961af052a9356081d50 100644 (file)
@@ -665,8 +665,8 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
         p_input->b_can_pause        = p_input->input.b_can_pause;
 
         /* Fix pts delay */
-        if( p_input->i_pts_delay <= 0 )
-            p_input->i_pts_delay = DEFAULT_PTS_DELAY;
+        if( p_input->i_pts_delay < 0 )
+            p_input->i_pts_delay = 0;
 
         /* If the desynchronisation requested by the user is < 0, we need to
          * cache more data. */
@@ -676,7 +676,7 @@ static int Init( input_thread_t * p_input, vlc_bool_t b_quick )
         /* Update cr_average depending on the caching */
         p_input->input.i_cr_average *= (10 * p_input->i_pts_delay / 200000);
         p_input->input.i_cr_average /= 10;
-        if( p_input->input.i_cr_average <= 0 ) p_input->input.i_cr_average = 1;
+        if( p_input->input.i_cr_average < 10 ) p_input->input.i_cr_average = 10;
     }
 
     /* Load master infos */