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:
arpi 2002-10-09 00:52:15 +00:00
parent e670753447
commit 4a92dacc4e
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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