[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.22,1.23

GEREOFFY arpi_esp at users.sourceforge.net
Fri Jun 22 00:36:04 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv29854

Modified Files:
	vo_xv.c 
Log Message:
Xv port locking patch by Artur Zaprzala <artur.zaprzala at talex.com.pl>

Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** vo_xv.c	2001/06/17 01:22:09	1.22
--- vo_xv.c	2001/06/21 22:36:02	1.23
***************
*** 102,105 ****
--- 102,106 ----
   XVisualInfo vinfo;
   XEvent xev;
+  XvPortID xv_p;
  
   XGCValues xgcv;
***************
*** 178,184 ****
      }
     /* check adaptors */
!    for (i = 0; i < adaptors; i++)
      {
!      if ((ai[i].type & XvInputMask) && (ai[i].type & XvImageMask) && (xv_port == 0)) xv_port = ai[i].base_id;
      }
     /* check image formats */
--- 179,192 ----
      }
     /* check adaptors */
!    for (i = 0; i < adaptors && xv_port == 0; i++)
      {
!      if ((ai[i].type & XvInputMask) && (ai[i].type & XvImageMask))
! 	 for (xv_p = ai[i].base_id; xv_p < ai[i].base_id+ai[i].num_ports; ++xv_p)
! 	     if (!XvGrabPort(mDisplay, xv_p, CurrentTime)) {
! 		 xv_port = xv_p;
! 		 break;
! 	     } else {
! 		 printf("Xv: could not grab port %i\n", (int)xv_p);
! 	     }
      }
     /* check image formats */


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list