mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
vo_subdevice support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1211 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e7a1ac130a
commit
5840c85b88
@ -56,11 +56,12 @@ static vo_info_t vo_info =
|
||||
static uint32_t
|
||||
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("/dev/mga_vid",O_RDWR);
|
||||
f = open(devname,O_RDWR);
|
||||
if(f == -1)
|
||||
{
|
||||
printf("Couldn't open /dev/mga_vid\n");
|
||||
printf("Couldn't open %s\n",devname);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
|
@ -191,12 +191,14 @@ static uint32_t init( uint32_t width, uint32_t height, uint32_t d_width, uint32_
|
||||
XGCValues xgcv;
|
||||
unsigned long xswamask;
|
||||
|
||||
f=open( "/dev/mga_vid",O_RDWR );
|
||||
if ( f == -1 )
|
||||
{
|
||||
printf("Couldn't open /dev/mga_vid\n");
|
||||
return(-1);
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user