[MPlayer-dev-eng] [PATCH] -vop help support (?) (now it works)
Julian J. M.
bandit at telecable.es
Mon May 13 22:48:06 CEST 2002
El lun, 13-05-2002 a las 21:43, Arpi escribió:
> that thingie should be implemented as a function, like vf_list_plugins()
> and be called from mplayer.c, where other options like -vc help and -vo help
> are handled
Hi... following your suggestions here is a working patch.
Greetings
Julian.
diff -r -u 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 Mon May 13 22:43:49 2002
@@ -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++;
+ }
+}
diff -r -u mplayer/libmpcodecs/vf.h mplayer-dev/libmpcodecs/vf.h
--- mplayer/libmpcodecs/vf.h Sun Apr 21 12:25:29 2002
+++ mplayer-dev/libmpcodecs/vf.h Mon May 13 22:33:21 2002
@@ -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);
diff -r -u mplayer/mplayer.c mplayer-dev/mplayer.c
--- mplayer/mplayer.c Thu May 9 16:47:35 2002
+++ mplayer-dev/mplayer.c Mon May 13 22:44:13 2002
@@ -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;
More information about the MPlayer-dev-eng
mailing list