]> git.sesse.net Git - vlc/blobdiff - src/video_output/video_widgets.c
Split out interlacing/post-processing management from video_output.c (vout).
[vlc] / src / video_output / video_widgets.c
index b6bf61d4da16abbfa2f4a06bf7c33f39bcb2208b..cbc2c30903855f4e4d40b09ea795bfc7707462b7 100644 (file)
@@ -46,11 +46,13 @@ void vout_OSDSlider( vlc_object_t *p_caller, int i_channel, int i_position,
 
     if( p_vout && ( var_InheritBool( p_caller, "osd" ) && ( i_position >= 0 ) ) )
     {
-        osd_Slider( p_caller, p_vout->p_spu, p_vout->render.i_width,
-            p_vout->render.i_height, p_vout->fmt_in.i_x_offset,
-            p_vout->fmt_in.i_height - p_vout->fmt_in.i_visible_height
-                                    - p_vout->fmt_in.i_y_offset,
-            i_channel, i_position, i_type );
+        osd_Slider( p_caller, vout_GetSpu( p_vout ),
+                    p_vout->fmt_render.i_width,
+                    p_vout->fmt_render.i_height,
+                    p_vout->fmt_in.i_x_offset,
+                    p_vout->fmt_in.i_height - p_vout->fmt_in.i_visible_height
+                                            - p_vout->fmt_in.i_y_offset,
+                    i_channel, i_position, i_type );
     }
     vlc_object_release( p_vout );
 }
@@ -69,9 +71,9 @@ void vout_OSDIcon( vlc_object_t *p_caller, int i_channel, short i_type )
     if( var_InheritBool( p_caller, "osd" ) )
     {
         osd_Icon( p_caller,
-                  p_vout->p_spu,
-                  p_vout->render.i_width,
-                  p_vout->render.i_height,
+                  vout_GetSpu( p_vout ),
+                  p_vout->fmt_render.i_width,
+                  p_vout->fmt_render.i_height,
                   p_vout->fmt_in.i_width - p_vout->fmt_in.i_visible_width
                                          - p_vout->fmt_in.i_x_offset,
                   p_vout->fmt_in.i_y_offset,