]> git.sesse.net Git - vlc/commitdiff
Fixed EPG OSD aspect ratio.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 2 Feb 2010 20:44:10 +0000 (21:44 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 2 Feb 2010 20:44:10 +0000 (21:44 +0100)
src/video_output/video_epg.c

index 96ae61c0a02c96ca6b611283ad1b819aed4bfd71..ef5c8c109c36a87f1f7f0fe1984cc3586b85a759 100644 (file)
@@ -55,6 +55,8 @@ static subpicture_region_t * vout_OSDEpgSlider( vout_thread_t *p_vout,
     video_format_Init( &fmt, VLC_CODEC_YUVA );
     fmt.i_width = fmt.i_visible_width = i_width;
     fmt.i_height = fmt.i_visible_height = i_height;
+    fmt.i_sar_num = 0;
+    fmt.i_sar_den = 1;
 
     p_region = subpicture_region_New( &fmt );
     if( !p_region )
@@ -113,6 +115,8 @@ static subpicture_region_t * vout_OSDEpgText( vout_thread_t *p_vout,
 
     /* Create a new subpicture region */
     video_format_Init( &fmt, VLC_CODEC_TEXT );
+    fmt.i_sar_num = 0;
+    fmt.i_sar_den = 1;
 
     p_region = subpicture_region_New( &fmt );
     if( !p_region )