control+preinit moved to mga_common.c

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4971 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-03-07 01:51:28 +00:00
parent 0827d3b1a7
commit 0954953681
3 changed files with 16 additions and 26 deletions

View File

@ -200,6 +200,16 @@ query_format(uint32_t format)
return 0; return 0;
} }
static uint32_t control(uint32_t request, void *data, ...)
{
switch (request) {
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t*)data));
}
return VO_NOTIMPL;
}
static int mga_init(){ static int mga_init(){
char *frame_mem; char *frame_mem;
@ -232,3 +242,9 @@ static int mga_uninit(){
munmap(frames[0],mga_vid_config.frame_size*mga_vid_config.num_frames); munmap(frames[0],mga_vid_config.frame_size*mga_vid_config.num_frames);
close(f); close(f);
} }
static uint32_t preinit(const char *arg)
{
return 0;
}

View File

@ -169,16 +169,3 @@ static void check_events(void)
{ {
} }
static uint32_t preinit(const char *arg)
{
return 0;
}
static uint32_t control(uint32_t request, void *data, ...)
{
switch (request) {
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t*)data));
}
return VO_NOTIMPL;
}

View File

@ -373,16 +373,3 @@ uninit(void)
printf("vo: uninit!\n"); printf("vo: uninit!\n");
} }
static uint32_t preinit(const char *arg)
{
return 0;
}
static uint32_t control(uint32_t request, void *data, ...)
{
switch (request) {
case VOCTRL_QUERY_FORMAT:
return query_format(*((uint32_t*)data));
}
return VO_NOTIMPL;
}