]> git.sesse.net Git - vlc/commitdiff
* src/video_output/vout_subpictures.c: pass on video output size changes to the text...
authorGildas Bazin <gbazin@videolan.org>
Wed, 9 Mar 2005 11:43:02 +0000 (11:43 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 9 Mar 2005 11:43:02 +0000 (11:43 +0000)
src/video_output/vout_subpictures.c

index 54ee55d3d7af4aeea12de8df1543e594f942cbd1..69cf88db5e1454c81ca3048df54859abe2329538 100644 (file)
@@ -516,6 +516,15 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
             p_spu->p_text->p_module =
                 module_Need( p_spu->p_text, "text renderer", 0, 0 );
         }
+        else if( p_region )
+        {
+            p_spu->p_text->fmt_out.video.i_width =
+                p_spu->p_text->fmt_out.video.i_visible_width =
+                    p_fmt->i_width;
+            p_spu->p_text->fmt_out.video.i_height =
+                p_spu->p_text->fmt_out.video.i_visible_height =
+                    p_fmt->i_height;
+        }
 
         i_scale_width = i_scale_width_orig;
         i_scale_height = i_scale_height_orig;