Commit cb6a3f8c authored by Laurent Aimar's avatar Laurent Aimar

Renamed deinterlace-mode into filter-deinterlace-mode.

It will allow using "deinterlace-mode" as a core option.
parent edf0142e
...@@ -138,7 +138,7 @@ vlc_module_begin () ...@@ -138,7 +138,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_VIDEO_VFILTER ) set_subcategory( SUBCAT_VIDEO_VFILTER )
set_section( N_("Display"),NULL) 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 ) MODE_LONGTEXT, false )
change_string_list( mode_list, mode_list_text, 0 ) change_string_list( mode_list, mode_list_text, 0 )
change_safe () change_safe ()
...@@ -271,11 +271,11 @@ static int Create( vlc_object_t *p_this ) ...@@ -271,11 +271,11 @@ static int Create( vlc_object_t *p_this )
} }
/* Look what method was requested */ /* 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 ) 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\"" ); msg_Err( p_vout, "no deinterlace mode provided, using \"discard\"" );
psz_mode = strdup( "discard" ); psz_mode = strdup( "discard" );
...@@ -433,7 +433,7 @@ static int Init( vout_thread_t *p_vout ) ...@@ -433,7 +433,7 @@ static int Init( vout_thread_t *p_vout )
vout_filter_AddChild( p_vout, p_vout->p_sys->p_vout, MouseEvent ); 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; return VLC_SUCCESS;
} }
...@@ -458,7 +458,7 @@ static void End( vout_thread_t *p_vout ) ...@@ -458,7 +458,7 @@ static void End( vout_thread_t *p_vout )
{ {
vout_sys_t *p_sys = p_vout->p_sys; 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++ ) for( int i = 0; i < HISTORY_SIZE; i++ )
{ {
...@@ -2058,8 +2058,8 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -2058,8 +2058,8 @@ static int OpenFilter( vlc_object_t *p_this )
p_filter->p_cfg ); p_filter->p_cfg );
var_Get( p_filter, FILTER_CFG_PREFIX "mode", &val ); var_Get( p_filter, FILTER_CFG_PREFIX "mode", &val );
var_Create( p_filter, "deinterlace-mode", VLC_VAR_STRING ); var_Create( p_filter, "filter-deinterlace-mode", VLC_VAR_STRING );
var_Set( p_filter, "deinterlace-mode", val ); var_Set( p_filter, "filter-deinterlace-mode", val );
free( val.psz_string ); free( val.psz_string );
if( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS ) if( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS )
......
...@@ -1909,8 +1909,8 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd, ...@@ -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_Create( p_input, "deinterlace", VLC_VAR_STRING );
var_SetString( p_input, "deinterlace", *p_mode->psz_mode ? p_mode->psz_mode : "disable" ); var_SetString( p_input, "deinterlace", *p_mode->psz_mode ? p_mode->psz_mode : "disable" );
var_Create( p_input, "deinterlace-mode", VLC_VAR_STRING ); var_Create( p_input, "filter-deinterlace-mode", VLC_VAR_STRING );
var_SetString( p_input, "deinterlace-mode", p_mode->psz_mode ); var_SetString( p_input, "filter-deinterlace-mode", p_mode->psz_mode );
var_Create( p_input, "sout-deinterlace-mode", VLC_VAR_STRING ); var_Create( p_input, "sout-deinterlace-mode", VLC_VAR_STRING );
var_SetString( p_input, "sout-deinterlace-mode", p_mode->psz_mode ); 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, ...@@ -1922,7 +1922,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
if( p_mode->b_vout_filter ) if( p_mode->b_vout_filter )
{ {
psz_old = var_CreateGetString( p_vout, "deinterlace-mode" ); psz_old = var_CreateGetString( p_vout, "filter-deinterlace-mode" );
} }
else else
{ {
...@@ -1990,7 +1990,7 @@ static void DeinterlaceEnable( vout_thread_t *p_vout ) ...@@ -1990,7 +1990,7 @@ static void DeinterlaceEnable( vout_thread_t *p_vout )
{ {
/* Get the initial value from filters if present */ /* Get the initial value from filters if present */
if( DeinterlaceIsPresent( p_vout, true ) ) 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 ) ) else if( DeinterlaceIsPresent( p_vout, false ) )
psz_mode = var_CreateGetNonEmptyString( p_vout, "sout-deinterlace-mode" ); psz_mode = var_CreateGetNonEmptyString( p_vout, "sout-deinterlace-mode" );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment