changeset 30000:a30debd7acd7

Add -xineramascreen support to corevideo vo. Still prefer corevideo's own device_id parameter if it's set.
author adrian
date Tue, 15 Dec 2009 20:25:50 +0000
parents 21ea15331e75
children 444f843a54ec
files DOCS/man/en/mplayer.1 libvo/vo_corevideo.m
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/man/en/mplayer.1	Tue Dec 15 02:13:51 2009 +0000
+++ b/DOCS/man/en/mplayer.1	Tue Dec 15 20:25:50 2009 +0000
@@ -3142,7 +3142,7 @@
 .br
 .I NOTE:
 This option is only supported by the x11, xmga, xv, xvmc, xvidix,
-gl, gl2, directx, fbdev and tdfxfb video output drivers.
+gl, gl2, directx, fbdev, tdfxfb and corevideo video output drivers.
 .sp 1
 .I EXAMPLE:
 .PD 0
@@ -3330,7 +3330,7 @@
 it will always display on the given screen in fullscreen mode),
 \-geometry is the best that is available for that purpose
 currently.
-Supported by at least the direct3d, gl, gl2, x11 and xv video output drivers.
+Supported by at least the direct3d, gl, gl2, x11, xv and corevideo video output drivers.
 .
 .TP
 .B \-zrbw (\-vo zr only)
--- a/libvo/vo_corevideo.m	Tue Dec 15 02:13:51 2009 +0000
+++ b/libvo/vo_corevideo.m	Tue Dec 15 20:25:50 2009 +0000
@@ -115,6 +115,9 @@
 
 static void update_screen_info(void)
 {
+	if (screen_id == -1 && xinerama_screen > -1)
+		screen_id = xinerama_screen;
+
 	screen_array = [NSScreen screens];
 	if(screen_id < (int)[screen_array count])
 	{