comparison mplayer.c @ 9593:e9a2af584986

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.
author albeu
date Sat, 15 Mar 2003 18:01:02 +0000
parents 11a39e14a762
children 76c6d8f1ebf5
comparison
equal deleted inserted replaced
9592:b20b0c80298b 9593:e9a2af584986
769 } 769 }
770 // Import initital playtree into gui 770 // Import initital playtree into gui
771 import_initial_playtree_into_gui(playtree, mconfig, enqueue); 771 import_initial_playtree_into_gui(playtree, mconfig, enqueue);
772 } 772 }
773 #endif 773 #endif
774
775 if(vo_plugin_args && vo_plugin_args[0] && strcmp(vo_plugin_args[0],"help")==0){
776 mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_AvailableVideoOutputPlugins);
777 vf_list_plugins();
778 printf("\n");
779 exit(0);
780 }
781 774
782 if(video_driver_list && strcmp(video_driver_list[0],"help")==0){ 775 if(video_driver_list && strcmp(video_driver_list[0],"help")==0){
783 list_video_out(); 776 list_video_out();
784 exit(0); 777 exit(0);
785 } 778 }
1537 sh_video->video_out=video_out; 1530 sh_video->video_out=video_out;
1538 inited_flags|=INITED_VO; 1531 inited_flags|=INITED_VO;
1539 } 1532 }
1540 1533
1541 current_module="init_video_filters"; 1534 current_module="init_video_filters";
1542 1535 {
1543 sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",(char *)video_out); 1536 char* vf_arg[] = { "_oldargs_", (char*)video_out , NULL };
1537 sh_video->vfilter=(void*)vf_open_filter(NULL,"vo",vf_arg);
1538 }
1544 #ifdef HAVE_MENU 1539 #ifdef HAVE_MENU
1545 if(use_menu) { 1540 if(use_menu) {
1546 vf_menu = vf_open_plugin(libmenu_vfs,sh_video->vfilter,"menu",menu_root); 1541 char* vf_arg[] = { "_oldargs_", menu_root, NULL };
1542 vf_menu = vf_open_plugin(libmenu_vfs,sh_video->vfilter,"menu",vf_arg);
1547 if(!vf_menu) { 1543 if(!vf_menu) {
1548 mp_msg(MSGT_CPLAYER,MSGL_ERR,"Can't open libmenu video filter with root menu %s\n",menu_root); 1544 mp_msg(MSGT_CPLAYER,MSGL_ERR,"Can't open libmenu video filter with root menu %s\n",menu_root);
1549 use_menu = 0; 1545 use_menu = 0;
1550 } 1546 }
1551 } 1547 }