allow passing :help to -vo [cx]vidix to get list of all compiled in vidix drivers

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22891 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2007-04-01 13:27:28 +00:00
parent eee868da73
commit abaab0a574
1 changed files with 23 additions and 0 deletions

View File

@ -77,11 +77,34 @@ static int vidix_probe_driver (VDXContext *ctx, VDXDriver *drv,
return 1;
}
static void vidix_list_drivers (void)
{
VDXDriver *drv;
printf ("Available VIDIX drivers:\n");
drv = first_driver;
while (drv)
{
vidix_capability_t cap;
drv->get_caps (&cap);
printf (" * %s - %s\n", drv->name, cap.name);
drv = drv->next;
}
}
int vidix_find_driver (VDXContext *ctx, const char *name,
unsigned int cap, int verbose)
{
VDXDriver *drv;
if (!strcmp (name, "help"))
{
vidix_list_drivers ();
ctx->drv = NULL;
return 0;
}
drv = first_driver;
while (drv)
{