[MPlayer-dev-eng] [PATCH] -vop help support (?)
Julian J. M.
bandit at telecable.es
Sun May 12 21:31:50 CEST 2002
Hi,
I've patched vf.c to show a list of filters and their description. I
don't know if it is the right place to do it. Also it would be better to
stop mplayer after showing the list.
Greetings
Julian.
diff -ru mplayer/libmpcodecs/vf.c mplayer-dev/libmpcodecs/vf.c
--- mplayer/libmpcodecs/vf.c Sun May 12 21:01:30 2002
+++ mplayer-dev/libmpcodecs/vf.c Sun May 12 21:26:19 2002
@@ -196,6 +196,20 @@
vf_instance_t* vf_open_plugin(vf_info_t** filter_list, vf_instance_t* next, char *name, char *args){
vf_instance_t* vf;
int i;
+
+ if(!strcmp(name,"help")){
+ i=0;
+ printf("Available filters:\n\n");
+ while(filter_list[i]){
+ printf("%10s: %s\n",filter_list[i]->name,filter_list[i]->info);
+ i++;
+ }
+ printf("\n");
+ // Is there any way to stop mplayer at this point??
+ return NULL;
+ }
+
for(i=0;;i++){
if(!filter_list[i]){
mp_msg(MSGT_VFILTER,MSGL_ERR,"Couldn't find video filter '%s'\n",name);
More information about the MPlayer-dev-eng
mailing list