]> git.sesse.net Git - vlc/commitdiff
Cosmetics.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 8 Dec 2008 19:27:34 +0000 (20:27 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 9 Dec 2008 20:13:02 +0000 (21:13 +0100)
src/input/decoder.c

index 555e6461e21743e7db6ef1b8e4f8dfd5a96e5312..4b4adf5babfcf902239634e5e37f5dc106a25ca4 100644 (file)
@@ -1375,9 +1375,6 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
         }
 
         /* */
-        int i_rate = INPUT_RATE_DEFAULT;
-        mtime_t i_delay;
-
         if( b_buffering_first )
         {
             assert( p_owner->buffer.b_first );
@@ -1385,10 +1382,10 @@ static void DecoderPlayVideo( decoder_t *p_dec, picture_t *p_picture,
             msg_Dbg( p_dec, "Received first picture" );
             p_owner->buffer.b_first = false;
             p_picture->b_force = true;
-            i_delay = 0;
-            if( p_owner->p_clock )
-                i_rate = input_clock_GetRate( p_owner->p_clock );
         }
+
+        int i_rate = INPUT_RATE_DEFAULT;
+        mtime_t i_delay;
         DecoderFixTs( p_dec, &p_picture->date, NULL, NULL,
                       &i_rate, &i_delay, false );