[vlc-devel] [PATCH] Core: Disable vout recycling for the visualization (fixes #9270) This avoids the vout opened for by the "visual" module to stay opened after having started an OpenGL based visualization.

Edward Wang edward.c.wang at compdigitec.com
Sun Sep 1 13:55:29 CEST 2013


On Sun, Sep 1, 2013 at 1:48 PM, Adrien Maglo <magsoft at videolan.org> wrote:

> ---
>  src/audio_output/filters.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
> index 796da1f..e20d275 100644
> --- a/src/audio_output/filters.c
> +++ b/src/audio_output/filters.c
> @@ -337,7 +337,9 @@ vout_thread_t *aout_filter_RequestVout (filter_t
> *filter, vout_thread_t *vout,
>       * to aout_request_vout_t inside filter_t (i.e. a level of
> indirection). */
>      const aout_request_vout_t *req = (void *)filter->p_owner;
>      char *visual = var_InheritString (filter->p_parent, "audio-visual");
> -    bool recycle = (visual != NULL) && strcasecmp(visual, "none");
> +    /* NOTE: Disable recycling to allways


always*


> close the filter vout because OpenGL
> +     * visualizations do not use this function to ask for a context. */
> +    bool recycle = false;
>      free (visual);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130901/dfeebf5a/attachment.html>


More information about the vlc-devel mailing list