Commit 7bd008c0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

visual: default is none, not any (fixes #8354)

parent 843b6da8
...@@ -457,6 +457,11 @@ int aout_FiltersNew (audio_output_t *aout, ...@@ -457,6 +457,11 @@ int aout_FiltersNew (audio_output_t *aout,
var_InheritBool (aout, "audio-time-stretch") ? "scaletempo" : NULL; var_InheritBool (aout, "audio-time-stretch") ? "scaletempo" : NULL;
char *filters = var_InheritString (aout, "audio-filter"); char *filters = var_InheritString (aout, "audio-filter");
char *visual = var_InheritString (aout, "audio-visual"); char *visual = var_InheritString (aout, "audio-visual");
if (visual != NULL && !strcasecmp (visual, "none"))
{
free (visual);
visual = NULL;
}
if (request_vout != NULL) if (request_vout != NULL)
owner->request_vout = *request_vout; owner->request_vout = *request_vout;
...@@ -465,7 +470,7 @@ int aout_FiltersNew (audio_output_t *aout, ...@@ -465,7 +470,7 @@ int aout_FiltersNew (audio_output_t *aout,
owner->request_vout.pf_request_vout = RequestVout; owner->request_vout.pf_request_vout = RequestVout;
owner->request_vout.p_private = aout; owner->request_vout.p_private = aout;
} }
owner->recycle_vout = (visual != NULL) && *visual; owner->recycle_vout = visual != NULL;
/* parse user filter lists */ /* parse user filter lists */
const char *list[AOUT_MAX_FILTERS]; const char *list[AOUT_MAX_FILTERS];
......
...@@ -1504,7 +1504,7 @@ vlc_module_begin () ...@@ -1504,7 +1504,7 @@ vlc_module_begin ()
add_module_list( "audio-filter", "audio filter", NULL, add_module_list( "audio-filter", "audio filter", NULL,
AUDIO_FILTER_TEXT, AUDIO_FILTER_LONGTEXT, false ) AUDIO_FILTER_TEXT, AUDIO_FILTER_LONGTEXT, false )
set_subcategory( SUBCAT_AUDIO_VISUAL ) set_subcategory( SUBCAT_AUDIO_VISUAL )
add_module( "audio-visual", "visualization2", NULL,AUDIO_VISUAL_TEXT, add_module( "audio-visual", "visualization2", "none", AUDIO_VISUAL_TEXT,
AUDIO_VISUAL_LONGTEXT, false ) AUDIO_VISUAL_LONGTEXT, false )
/* Video options */ /* Video options */
......
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