]> git.sesse.net Git - vlc/commitdiff
*EXPERIMENTAL* Default to disabling vout_synchro, but not dropping of late pictures...
authorClément Stenac <zorglub@videolan.org>
Sat, 25 Mar 2006 18:19:13 +0000 (18:19 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 25 Mar 2006 18:19:13 +0000 (18:19 +0000)
Please test heavily against MPEG1/2 streams.

src/libvlc.h
src/video_output/video_output.c

index 93023cfa380e1ee8286dd66a49476e2660445874..eaeb5bacae049591fe558515cddcd74d61430c13 100644 (file)
@@ -335,6 +335,13 @@ static char *ppsz_align_descriptions[] =
     "This option enables framedropping on MPEG2 stream. Framedropping " \
     "occurs when your computer is not powerful enough" )
 
+#define DROP_LATE_FRAMES_TEXT N_("Drop late frames")
+#define DROP_LATE_FRAMES_LONGTEXT N_( \
+    "This drops frames that are late (arrive to the video output after " \
+    "their intended display date)." )
+
+
+
 #define QUIET_SYNCHRO_TEXT N_("Quiet synchro")
 #define QUIET_SYNCHRO_LONGTEXT N_( \
     "Enable this option to avoid flooding the message log with debug " \
@@ -1091,7 +1098,10 @@ vlc_module_begin();
     add_bool( "fullscreen", 0, NULL, FULLSCREEN_TEXT,
               FULLSCREEN_LONGTEXT, VLC_FALSE );
         change_short('f');
-    add_bool( "skip-frames", 1, NULL, SKIP_FRAMES_TEXT,
+    add_bool( "drop-late-frames", 1, NULL, DROP_LATE_FRAMES_TEXT,
+              DROP_LATE_FRAMES_LONGTEXT, VLC_TRUE );
+    /* Used in vout_synchro */
+    add_bool( "skip-frames", 0, NULL, SKIP_FRAMES_TEXT,
               SKIP_FRAMES_LONGTEXT, VLC_TRUE );
     add_bool( "quiet-synchro", 0, NULL, QUIET_SYNCHRO_TEXT,
               QUIET_SYNCHRO_LONGTEXT, VLC_TRUE );
index 129e361ae4ad53b109e21893f95ae9b954f55cdd..d3e2d9b59119eb78a761679608dadb7060aab0d8 100644 (file)
@@ -796,7 +796,7 @@ static void RunThread( vout_thread_t *p_vout)
             if( !p_picture->b_force &&
                 p_picture != p_last_picture &&
                 display_date < current_date + p_vout->render_time &&
-                config_GetInt( p_vout, "skip-frames" ) )
+                config_GetInt( p_vout, "drop-late-frames" ) )
             {
                 /* Picture is late: it will be destroyed and the thread
                  * will directly choose the next picture */