Commit e5ef811f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Remove prefer-system codecs option

Close #3093
parent 2200c2c0
......@@ -963,11 +963,6 @@ static const char *const ppsz_clock_descriptions[] =
"This allows you to select a list of encoders that VLC will use in " \
"priority.")
#define SYSTEM_CODEC_TEXT N_("Prefer system plugins over VLC")
#define SYSTEM_CODEC_LONGTEXT N_( \
"Indicates whether VLC will prefer native plugins installed " \
"on system over VLC owns plugins whenever a choice is available." )
/*****************************************************************************
* Sout
****************************************************************************/
......@@ -1978,8 +1973,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_VCODEC )
set_subcategory( SUBCAT_INPUT_ACODEC )
set_subcategory( SUBCAT_INPUT_SCODEC )
add_bool( "prefer-system-codecs", false, SYSTEM_CODEC_TEXT,
SYSTEM_CODEC_LONGTEXT, false )
add_obsolete_bool( "prefer-system-codecs" )
set_subcategory( SUBCAT_INPUT_STREAM_FILTER )
add_module_list_cat( "stream-filter", SUBCAT_INPUT_STREAM_FILTER, NULL, NULL,
......
......@@ -924,25 +924,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
intf_Create( p_libvlc, "netsync,none" );
}
#ifdef WIN32
if( var_InheritBool( p_libvlc, "prefer-system-codecs") )
{
char *psz_codecs = var_CreateGetNonEmptyString( p_libvlc, "codec" );
if( psz_codecs )
{
char *psz_morecodecs;
if( asprintf(&psz_morecodecs, "%s,dmo", psz_codecs) != -1 )
{
var_SetString( p_libvlc, "codec", psz_morecodecs);
free( psz_morecodecs );
}
free( psz_codecs );
}
else
var_SetString( p_libvlc, "codec", "dmo");
}
#endif
#ifdef __APPLE__
var_Create( p_libvlc, "drawable-view-top", VLC_VAR_INTEGER );
var_Create( p_libvlc, "drawable-view-left", VLC_VAR_INTEGER );
......
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