]> git.sesse.net Git - vlc/commitdiff
Some more vfilter2 stuff
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 22 Jul 2006 14:45:25 +0000 (14:45 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 22 Jul 2006 14:45:25 +0000 (14:45 +0000)
src/video_output/video_output.c

index f4c7ed014faa45988ee396abe139d988769dfb2f..50978dabfebce97eb4eb39250609931151ba185e 100644 (file)
@@ -963,7 +963,16 @@ static void RunThread( vout_thread_t *p_vout)
                 p_vfilter->pf_vout_buffer_new = video_new_buffer_filter;
                 p_vfilter->pf_vout_buffer_del = video_del_buffer_filter;
 
-                p_vfilter->fmt_in.video = p_vout->fmt_render;
+                if( !p_vout->i_vfilters )
+                {
+                    p_vfilter->fmt_in.video = p_vout->fmt_render;
+                }
+                else
+                {
+                    p_vfilter->fmt_in.video = (p_vfilter-1)->fmt_out.video;
+                }
+                /* TODO: one day filters in the middle of the chain might
+                 * have a different fmt_out.video than fmt_render ... */
                 p_vfilter->fmt_out.video = p_vout->fmt_render;
 
                 p_vfilter->p_cfg = p_vout->p_vfilters_cfg[i];