[MPlayer-cvslog] r22891 - trunk/vidix/drivers.c
ben
subversion at mplayerhq.hu
Sun Apr 1 15:27:28 CEST 2007
Author: ben
Date: Sun Apr 1 15:27:28 2007
New Revision: 22891
Modified:
trunk/vidix/drivers.c
Log:
allow passing :help to -vo [cx]vidix to get list of all compiled in vidix drivers
Modified: trunk/vidix/drivers.c
==============================================================================
--- trunk/vidix/drivers.c (original)
+++ trunk/vidix/drivers.c Sun Apr 1 15:27:28 2007
@@ -77,11 +77,34 @@ static int vidix_probe_driver (VDXContex
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)
{
More information about the MPlayer-cvslog
mailing list