diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-15 18:01:02 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-15 18:01:02 +0000 |
commit | 33b62af94760186c523e90375daaab9968cf09e3 (patch) | |
tree | 10f97f0db5e1cf978f392457fd09e6731cd5dca6 /mplayer.c | |
parent | 83ee572cffff0b324b1664fc7de0402b01758500 (diff) | |
download | mpv-33b62af94760186c523e90375daaab9968cf09e3.tar.bz2 mpv-33b62af94760186c523e90375daaab9968cf09e3.tar.xz |
Add the new -vf option wich is the same as vop in reverse order.
Syntax is we decided, so you can give the nomes or not with both
vop and vf. vf take precedence over vop.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9594 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -772,13 +772,6 @@ int gui_no_filename=0; } #endif - if(vo_plugin_args && vo_plugin_args[0] && strcmp(vo_plugin_args[0],"help")==0){ - mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_AvailableVideoOutputPlugins); - vf_list_plugins(); - printf("\n"); - exit(0); - } - if(video_driver_list && strcmp(video_driver_list[0],"help")==0){ list_video_out(); exit(0); @@ -1539,11 +1532,14 @@ inited_flags|=INITED_VO; } current_module="init_video_filters"; - -sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",(char *)video_out); +{ + char* vf_arg[] = { "_oldargs_", (char*)video_out , NULL }; + sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",vf_arg); +} #ifdef HAVE_MENU if(use_menu) { - vf_menu = vf_open_plugin(libmenu_vfs,sh_video->vfilter,"menu",menu_root); + char* vf_arg[] = { "_oldargs_", menu_root, NULL }; + vf_menu = vf_open_plugin(libmenu_vfs,sh_video->vfilter,"menu",vf_arg); if(!vf_menu) { mp_msg(MSGT_CPLAYER,MSGL_ERR,"Can't open libmenu video filter with root menu %s\n",menu_root); use_menu = 0; |