[Mplayer-cvslog] CVS: main/libvo vo_mga.c,1.12,1.13 vo_xmga.c,1.23,1.24
GEREOFFY
arpi_esp at users.sourceforge.net
Sat Jun 23 21:44:24 CEST 2001
Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv8288
Modified Files:
vo_mga.c vo_xmga.c
Log Message:
vo_subdevice support
Index: vo_mga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_mga.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** vo_mga.c 2001/04/24 11:42:04 1.12
--- vo_mga.c 2001/06/23 19:44:22 1.13
***************
*** 57,65 ****
init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format)
{
! f = open("/dev/mga_vid",O_RDWR);
if(f == -1)
{
! printf("Couldn't open /dev/mga_vid\n");
return(-1);
}
--- 57,66 ----
init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t fullscreen, char *title, uint32_t format)
{
+ char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
! f = open(devname,O_RDWR);
if(f == -1)
{
! printf("Couldn't open %s\n",devname);
return(-1);
}
Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** vo_xmga.c 2001/06/17 01:22:09 1.23
--- vo_xmga.c 2001/06/23 19:44:22 1.24
***************
*** 192,201 ****
unsigned long xswamask;
! f=open( "/dev/mga_vid",O_RDWR );
! if ( f == -1 )
! {
! printf("Couldn't open /dev/mga_vid\n");
! return(-1);
! }
switch(format)
--- 192,203 ----
unsigned long xswamask;
! char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
!
! f = open(devname,O_RDWR);
! if(f == -1)
! {
! printf("Couldn't open %s\n",devname);
! return(-1);
! }
switch(format)
_______________________________________________
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