]> git.sesse.net Git - vlc/blobdiff - src/osd/osd_widgets.c
Do not reuse "osd" variable in osd menu.
[vlc] / src / osd / osd_widgets.c
index 76765165074b73c5571c4f66750326c6f3c762b1..5d989944fb217f919d00649e259fb47e4632d582 100644 (file)
@@ -159,8 +159,7 @@ static int CreatePicture( spu_t *p_spu, subpicture_t *p_subpic,
 
     /* Create a new subpicture region */
     memset( &fmt, 0, sizeof(video_format_t) );
-    fmt.i_chroma = VLC_FOURCC('Y','U','V','A');
-    fmt.i_aspect = 0;
+    fmt.i_chroma = VLC_CODEC_YUVA;
     fmt.i_width = fmt.i_visible_width = i_width;
     fmt.i_height = fmt.i_visible_height = i_height;
     fmt.i_x_offset = fmt.i_y_offset = 0;
@@ -196,8 +195,10 @@ subpicture_t *osd_CreateWidget( spu_t *p_spu, int i_channel )
     subpicture_t *p_subpic;
     mtime_t i_now = mdate();
 
+    VLC_UNUSED(p_spu);
+
     /* Create and initialize a subpicture */
-    p_subpic = spu_CreateSubpicture( p_spu );
+    p_subpic = subpicture_New( NULL );
     if( p_subpic == NULL ) return NULL;
 
     p_subpic->i_channel = i_channel;