mirror of https://github.com/mpv-player/mpv
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:
parent
eee868da73
commit
abaab0a574
|
@ -77,11 +77,34 @@ static int vidix_probe_driver (VDXContext *ctx, VDXDriver *drv,
|
||||||
return 1;
|
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,
|
int vidix_find_driver (VDXContext *ctx, const char *name,
|
||||||
unsigned int cap, int verbose)
|
unsigned int cap, int verbose)
|
||||||
{
|
{
|
||||||
VDXDriver *drv;
|
VDXDriver *drv;
|
||||||
|
|
||||||
|
if (!strcmp (name, "help"))
|
||||||
|
{
|
||||||
|
vidix_list_drivers ();
|
||||||
|
ctx->drv = NULL;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
drv = first_driver;
|
drv = first_driver;
|
||||||
while (drv)
|
while (drv)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue