[vlc-devel] [PATCH] Restore video-filter if vout is reused

Mario Speiß 1034-135 at online.de
Sun Feb 3 12:24:12 CET 2013

This patch triggers "video-filter" to restore the video filters. They may get
lost if a playlist contains videos with same width/height so that usually the
vout is reused. Then the filters are missing (contrast, etc.)
Maybe it is also connected to the ticket #6948 discussed in january.

It works for me a long time now.

 src/video_output/video_output.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0c56ef9..afb6a0d 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -624,6 +624,8 @@ vout_window_t * vout_NewDisplayWindow(vout_thread_t *vout, vout_display_t *vd,
                                     cfg_override.width, cfg_override.height);
             vout->p->window.is_unused = false;
             vout->p->window.cfg       = cfg_override;
+            /* restore video filters as they might have stopped (if input has been changing) */
+            var_TriggerCallback(vout, "video-filter");
             return window;

More information about the vlc-devel mailing list