[vlc-devel] commit: Renamed deinterlace-mode into filter-deinterlace-mode. ( Laurent Aimar )

git version control git at videolan.org
Mon Oct 5 23:52:26 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Oct  5 22:07:35 2009 +0200| [cb6a3f8c0545cc6b3926b1ecd82cb55ed9e61308] | committer: Laurent Aimar 

Renamed deinterlace-mode into filter-deinterlace-mode.

It will allow using "deinterlace-mode" as a core option.

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

 modules/video_filter/deinterlace.c |   14 +++++++-------
 src/video_output/video_output.c    |    8 ++++----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/video_filter/deinterlace.c b/modules/video_filter/deinterlace.c
index 8fba371..b9d2546 100644
--- a/modules/video_filter/deinterlace.c
+++ b/modules/video_filter/deinterlace.c
@@ -138,7 +138,7 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_VIDEO_VFILTER )
 
     set_section( N_("Display"),NULL)
-    add_string( "deinterlace-mode", "discard", NULL, MODE_TEXT,
+    add_string( "filter-deinterlace-mode", "discard", NULL, MODE_TEXT,
                 MODE_LONGTEXT, false )
         change_string_list( mode_list, mode_list_text, 0 )
         change_safe ()
@@ -271,11 +271,11 @@ static int Create( vlc_object_t *p_this )
     }
 
     /* Look what method was requested */
-    psz_mode = var_CreateGetString( p_vout, "deinterlace-mode" );
+    psz_mode = var_CreateGetString( p_vout, "filter-deinterlace-mode" );
 
     if( !psz_mode )
     {
-        msg_Err( p_vout, "configuration variable deinterlace-mode empty" );
+        msg_Err( p_vout, "configuration variable filter-deinterlace-mode empty" );
         msg_Err( p_vout, "no deinterlace mode provided, using \"discard\"" );
 
         psz_mode = strdup( "discard" );
@@ -433,7 +433,7 @@ static int Init( vout_thread_t *p_vout )
 
     vout_filter_AddChild( p_vout, p_vout->p_sys->p_vout, MouseEvent );
 
-    var_AddCallback( p_vout, "deinterlace-mode", FilterCallback, NULL );
+    var_AddCallback( p_vout, "filter-deinterlace-mode", FilterCallback, NULL );
 
     return VLC_SUCCESS;
 }
@@ -458,7 +458,7 @@ static void End( vout_thread_t *p_vout )
 {
     vout_sys_t *p_sys = p_vout->p_sys;
 
-    var_DelCallback( p_vout, "deinterlace-mode", FilterCallback, NULL );
+    var_DelCallback( p_vout, "filter-deinterlace-mode", FilterCallback, NULL );
 
     for( int i = 0; i < HISTORY_SIZE; i++ )
     {
@@ -2058,8 +2058,8 @@ static int OpenFilter( vlc_object_t *p_this )
                    p_filter->p_cfg );
     var_Get( p_filter, FILTER_CFG_PREFIX "mode", &val );
 
-    var_Create( p_filter, "deinterlace-mode", VLC_VAR_STRING );
-    var_Set( p_filter, "deinterlace-mode", val );
+    var_Create( p_filter, "filter-deinterlace-mode", VLC_VAR_STRING );
+    var_Set( p_filter, "filter-deinterlace-mode", val );
     free( val.psz_string );
 
     if( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS )
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 1344326..1a1dae2 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1909,8 +1909,8 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
         var_Create( p_input, "deinterlace", VLC_VAR_STRING );
         var_SetString( p_input, "deinterlace", *p_mode->psz_mode ? p_mode->psz_mode : "disable" );
 
-        var_Create( p_input, "deinterlace-mode", VLC_VAR_STRING );
-        var_SetString( p_input, "deinterlace-mode", p_mode->psz_mode );
+        var_Create( p_input, "filter-deinterlace-mode", VLC_VAR_STRING );
+        var_SetString( p_input, "filter-deinterlace-mode", p_mode->psz_mode );
 
         var_Create( p_input, "sout-deinterlace-mode", VLC_VAR_STRING );
         var_SetString( p_input, "sout-deinterlace-mode", p_mode->psz_mode );
@@ -1922,7 +1922,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
 
     if( p_mode->b_vout_filter )
     {
-        psz_old = var_CreateGetString( p_vout, "deinterlace-mode" );
+        psz_old = var_CreateGetString( p_vout, "filter-deinterlace-mode" );
     }
     else
     {
@@ -1990,7 +1990,7 @@ static void DeinterlaceEnable( vout_thread_t *p_vout )
     {
         /* Get the initial value from filters if present */
         if( DeinterlaceIsPresent( p_vout, true ) )
-            psz_mode = var_CreateGetNonEmptyString( p_vout, "deinterlace-mode" );
+            psz_mode = var_CreateGetNonEmptyString( p_vout, "filter-deinterlace-mode" );
         else if( DeinterlaceIsPresent( p_vout, false ) )
             psz_mode = var_CreateGetNonEmptyString( p_vout, "sout-deinterlace-mode" );
     }




More information about the vlc-devel mailing list