changeset 6081:47d6a4b0f971

-vop help, patch by Julian J. M. <bandit@telecable.es>
author arpi
date Mon, 13 May 2002 21:05:03 +0000
parents 2cac91e697f1
children 03a4d9bb2650
files libmpcodecs/vf.c libmpcodecs/vf.h mplayer.c
diffstat 3 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf.c	Mon May 13 20:56:08 2002 +0000
+++ b/libmpcodecs/vf.c	Mon May 13 21:05:03 2002 +0000
@@ -338,3 +338,11 @@
 	vf=next;
     }
 }
+
+void vf_list_plugins(){
+    int i=0;
+    while(filter_list[i]){
+        mp_msg(MSGT_VFILTER,MSGL_INFO,"\t%-10s: %s\n",filter_list[i]->name,filter_list[i]->info);
+        i++;
+    }
+}
--- a/libmpcodecs/vf.h	Mon May 13 20:56:08 2002 +0000
+++ b/libmpcodecs/vf.h	Mon May 13 21:05:03 2002 +0000
@@ -74,6 +74,8 @@
 
 vf_instance_t* append_filters(vf_instance_t* last);
 
+void vf_list_plugins();
+
 void vf_uninit_filter(vf_instance_t* vf);
 void vf_uninit_filter_chain(vf_instance_t* vf);
 
--- a/mplayer.c	Mon May 13 20:56:08 2002 +0000
+++ b/mplayer.c	Mon May 13 21:05:03 2002 +0000
@@ -601,6 +601,13 @@
     }
 #endif
 
+    if(vo_plugin_args && vo_plugin_args[0] && strcmp(vo_plugin_args[0],"help")==0){
+      mp_msg(MSGT_CPLAYER, MSGL_INFO, "Available video output pluggins:\n");
+      vf_list_plugins();
+      printf("\n");
+      exit(0);
+    }
+
     if(video_driver && strcmp(video_driver,"help")==0){
       mp_msg(MSGT_CPLAYER, MSGL_INFO, "Available video output drivers:\n");
       i=0;