]> git.sesse.net Git - vlc/commitdiff
Core: Disable vout recycling for the visualization
authorAdrien Maglo <magsoft@videolan.org>
Mon, 14 Apr 2014 12:36:06 +0000 (14:36 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 14 Apr 2014 12:37:24 +0000 (14:37 +0200)
This avoids the vout opened for by the "visual" module to stay
opened after having started an OpenGL based visualization.

This is a work-around for #9270, but noone fixed it/care enough since 2.1.x...

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/audio_output/filters.c

index 796da1f15d89a2ee933f8cf631f14bb4d8a916f6..c6970a5cf3581eb9447055769375edf9b1d1f016 100644 (file)
@@ -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 always close the filter vout because OpenGL
+     * visualizations do not use this function to ask for a context. */
+    bool recycle = false;
     free (visual);
 
     return req->pf_request_vout (req->p_private, vout, fmt, recycle);