[MPlayer-dev-eng] solved: wrong aspect ratio with xv driver

Nilmoni Deb ndeb at ece.cmu.edu
Wed Mar 6 05:11:24 CET 2002


Hi all,
        I have found a solution to the fullscreen mode problem
with xv driver (when compiled with --enable-gui but not run with gui).
This problem has been reported in:

http://mplayerhq.hu/pipermail/mplayer-dev-eng/2002-March/005887.html
http://mplayerhq.hu/pipermail/mplayer-dev-eng/2002-March/005932.html

Here is the patch ->

--- libvo/vo_xv.c       Tue Mar  5 22:54:59 2002
+++ libvo/vo_xv.c.new   Tue Mar  5 23:01:04 2002
@@ -37,6 +37,7 @@
 #include "fastmemcpy.h"
 #include "sub.h"
 #include "aspect.h"
+#include "../mplayer.h"

 #include "../postproc/rgb2rgb.h"

@@ -495,7 +496,7 @@
      current_buf=0;

 #ifdef HAVE_NEW_GUI
-      if ( vo_window != None )
+      if ( vo_window != None && use_gui)
        {
         mFullscreen=0;
         dwidth=mdwidth; dheight=mdheight;



The above patch works during runtime for both gui and no-gui.

thanks
- Nil




More information about the MPlayer-dev-eng mailing list