mirror of https://github.com/mpv-player/mpv
preinit() has an arg... use it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7677 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e670753447
commit
4a92dacc4e
|
@ -355,7 +355,7 @@ static int mga_uninit(){
|
|||
return 0;
|
||||
}
|
||||
|
||||
static uint32_t preinit(const char *arg)
|
||||
static uint32_t preinit(const char *vo_subdevice)
|
||||
{
|
||||
char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid";
|
||||
|
||||
|
@ -363,7 +363,7 @@ static uint32_t preinit(const char *arg)
|
|||
if(f == -1)
|
||||
{
|
||||
perror("open");
|
||||
printf("Couldn't open %s\n",devname);
|
||||
printf("vo_mga: Couldn't open %s\n",devname);
|
||||
return(-1);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -1274,7 +1274,7 @@ static void uninit(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
static uint32_t preinit(const char *arg)
|
||||
static uint32_t preinit(const char *vo_subdevice)
|
||||
{
|
||||
pre_init_err = 0;
|
||||
#ifdef CONFIG_VIDIX
|
||||
|
|
Loading…
Reference in New Issue