Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > ecbfffd53099d296aa3be64531b34419 > files > 25

mplayer-1.0-1.rc1.20.6mdv2008.0.src.rpm

--- MPlayer-1.0rc1/libvo/vo_xv.c.xv	2006-10-23 00:32:26.000000000 +0200
+++ MPlayer-1.0rc1/libvo/vo_xv.c	2006-11-05 22:26:41.000000000 +0100
@@ -310,11 +310,16 @@
                                            ButtonReleaseMask |
                                            ExposureMask);
                 XMapWindow(mDisplay, vo_window);
+               //XFlush(mDisplay);
                 XGetGeometry(mDisplay, vo_window, &mRoot,
                              &drwX, &drwY, &vo_dwidth, &vo_dheight,
                              &drwBorderWidth, &drwDepth);
-                drwX = drwY = 0; // coordinates need to be local to the window
-                aspect_save_prescale(vo_dwidth, vo_dheight);
+               if (vo_dwidth <= 0)
+                   vo_dwidth = d_width;
+               if (vo_dheight <= 0)
+                   vo_dheight = d_height;
+               drwX = drwY = 0; // coordinates need to be local to the window
+               aspect_save_prescale(vo_dwidth, vo_dheight);
             } else
             {
                 drwX = vo_dx;