lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MPlayer-dev-eng] [PATCH] fix vo_xvidix x and y offset calculation
- Date: Wed, 15 Oct 2008 20:51:01 +0200
- From: Sascha Sommer <saschasommer@xxxxxxxxxx>
- Subject: [MPlayer-dev-eng] [PATCH] fix vo_xvidix x and y offset calculation
Hi,
currently vidix seems to be broken. Attached patch fixes it for me.
Somehow the xinerama screen seems to be set to the default -1
what then adds random values to the x and y offsets leading to a broken
picture.
Ok to commit?
Regards
Sascha
Index: libvo/vo_xvidix.c
===================================================================
--- libvo/vo_xvidix.c (revision 27776)
+++ libvo/vo_xvidix.c (working copy)
@@ -155,10 +155,11 @@
*/
i = xinerama_screen;
}
-
- /* set drwcX and drwcY to the right values */
- drwcX = drwcX - screens[i].x_org;
- drwcY = drwcY - screens[i].y_org;
+ if(i != -1){
+ /* set drwcX and drwcY to the right values */
+ drwcX = drwcX - screens[i].x_org;
+ drwcY = drwcY - screens[i].y_org;
+ }
XFree(screens);
}
#endif
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng