[vlc-commits] transcode: obsolete hurry-up flag

Ilkka Ollakka git at videolan.org
Sat Feb 15 23:30:04 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Feb 15 21:03:29 2014 +0200| [1785bf6f62a76cc6c50c309848c41f4b06edcff0] | committer: Ilkka Ollakka

transcode: obsolete hurry-up flag

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

 modules/stream_out/transcode/transcode.c |   10 ++--------
 modules/stream_out/transcode/video.c     |   12 ------------
 2 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 893fb4e..a69201c 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -137,9 +137,6 @@
     "This option will drop/duplicate video frames to synchronise the video " \
     "track on the audio track." )
 
-#define HURRYUP_TEXT N_( "Hurry up" )
-#define HURRYUP_LONGTEXT N_( "The transcoder will drop frames if your CPU " \
-                "can't keep up with the encoding rate." )
 
 static const char *const ppsz_deinterlace_type[] =
 {
@@ -170,8 +167,7 @@ vlc_module_begin ()
                SCALE_LONGTEXT, false )
     add_string( SOUT_CFG_PREFIX "fps", NULL, FPS_TEXT,
                FPS_LONGTEXT, false )
-    add_bool( SOUT_CFG_PREFIX "hurry-up", false, HURRYUP_TEXT,
-               HURRYUP_LONGTEXT, false )
+    add_obsolete_bool( SOUT_CFG_PREFIX "hurry-up"); /* Since 2.2.0 */
     add_bool( SOUT_CFG_PREFIX "deinterlace", false, DEINTERLACE_TEXT,
               DEINTERLACE_LONGTEXT, false )
     add_string( SOUT_CFG_PREFIX "deinterlace-module", "deinterlace",
@@ -232,7 +228,7 @@ vlc_module_end ()
 static const char *const ppsz_sout_options[] = {
     "venc", "vcodec", "vb",
     "scale", "fps", "width", "height", "vfilter", "deinterlace",
-    "deinterlace-module", "threads", "hurry-up", "aenc", "acodec", "ab", "alang",
+    "deinterlace-module", "threads", "aenc", "acodec", "ab", "alang",
     "afilter", "samplerate", "channels", "senc", "scodec", "soverlay",
     "sfilter", "osd", "audio-sync", "high-priority", "maxwidth", "maxheight",
     NULL
@@ -351,8 +347,6 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->b_master_sync = var_InheritURational( p_stream, &p_sys->fps_num, &p_sys->fps_den, SOUT_CFG_PREFIX "fps" );
 
-    p_sys->b_hurry_up = var_GetBool( p_stream, SOUT_CFG_PREFIX "hurry-up" );
-
     p_sys->i_width = var_GetInteger( p_stream, SOUT_CFG_PREFIX "width" );
 
     p_sys->i_height = var_GetInteger( p_stream, SOUT_CFG_PREFIX "height" );
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 25d98b0..9d1f2eb 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -832,18 +832,6 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
     while( (p_pic = id->p_decoder->pf_decode_video( id->p_decoder, &in )) )
     {
 
-        if( p_stream->p_sout->i_out_pace_nocontrol && p_sys->b_hurry_up )
-        {
-            mtime_t current_date = mdate();
-            if( unlikely( (current_date - 50000) > p_pic->date ) )
-            {
-                msg_Dbg( p_stream, "late picture skipped (%"PRId64")",
-                         current_date - 50000 - p_pic->date );
-                picture_Release( p_pic );
-                continue;
-            }
-        }
-
         if( unlikely (
              id->p_encoder->p_module &&
              !video_format_IsSimilar( &p_sys->fmt_input_video, &id->p_decoder->fmt_out.video )



More information about the vlc-commits mailing list