]> git.sesse.net Git - vlc/commitdiff
video_output.c: use the visible dimensions and not the pixel dimensions
authorSteve Lhomme <robux@videolan.org>
Sun, 6 Mar 2005 13:44:17 +0000 (13:44 +0000)
committerSteve Lhomme <robux@videolan.org>
Sun, 6 Mar 2005 13:44:17 +0000 (13:44 +0000)
if this create some memory leaks, it should be corrected elsewhere
this solves the HDTV grey line bug

src/video_output/video_output.c

index 343475d7e943ebb536f671c46ab530df9daa6ab5..d9e0c3e633ee6acfe5484e52bc98e1c267a87e9d 100644 (file)
@@ -215,8 +215,8 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
     char           * psz_plugin;
     vlc_value_t      val, text;
 
-    unsigned int i_width = p_fmt->i_width;
-    unsigned int i_height = p_fmt->i_height;
+    unsigned int i_width = p_fmt->i_visible_width;
+    unsigned int i_height = p_fmt->i_visible_height;
     vlc_fourcc_t i_chroma = p_fmt->i_chroma;
     unsigned int i_aspect = p_fmt->i_aspect;