[vlc-devel] commit: Cosmetics. (Laurent Aimar )

git version control git at videolan.org
Tue Dec 9 21:40:21 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Dec  8 20:27:34 2008 +0100| [3de04848582ac76dd9dd4a326a20bbfaade7abdf] | committer: Laurent Aimar 

Cosmetics.

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

 src/input/decoder.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 555e646..4b4adf5 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -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 );
 




More information about the vlc-devel mailing list