summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-10-25 07:05:47 +0300
committerUoti Urpala <uau@mplayer2.org>2011-10-25 07:05:47 +0300
commit8b5efd6455370c02211f9fec2a3dbb74f5d0fcbc (patch)
tree4a8222fbf5ed2c8e7b7766435820183ff641c97d /mplayer.c
parentb200583403219136363b755afab2b05c0937a928 (diff)
downloadmpv-8b5efd6455370c02211f9fec2a3dbb74f5d0fcbc.tar.bz2
mpv-8b5efd6455370c02211f9fec2a3dbb74f5d0fcbc.tar.xz
libmenu: remove OSD menu functionality (--menu)
Something like the OSD menu functionality could be useful. However the current implementation has several problems and would require a relatively large amount of work to get into good shape. As far as I know there are few users of the existing functionality. Nobody is working on the existing code and keeping it compiling at all while changing other code would require extra work. So delete the menu code and some related code elsewhere that's used by nothing else.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/mplayer.c b/mplayer.c
index ceb9f794a8..5563819112 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -301,7 +301,6 @@ int dvdsub_lang_id;
int vobsub_id = -1;
static char *spudec_ifo = NULL;
int forced_subs_only = 0;
-int file_filter = 1;
// cache2:
int stream_cache_size = -1;
@@ -337,20 +336,6 @@ char *current_module; // for debugging
// ---
-#ifdef CONFIG_MENU
-#include "m_struct.h"
-#include "libmenu/menu.h"
-static const vf_info_t * const libmenu_vfs[] = {
- &vf_info_menu,
- NULL
-};
-static vf_instance_t *vf_menu;
-int use_menu;
-static char *menu_cfg;
-static char *menu_root = "main";
-#endif
-
-
edl_record_ptr edl_records = NULL; ///< EDL entries memory area
edl_record_ptr next_edl_record = NULL; ///< only for traversing edl_records
FILE *edl_fd; // file to write to when in -edlout mode.
@@ -643,9 +628,6 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask)
if (mpctx->sh_video)
uninit_video(mpctx->sh_video);
mpctx->sh_video = NULL;
-#ifdef CONFIG_MENU
- vf_menu = NULL;
-#endif
}
if (mask & INITIALIZED_DEMUXER) {
@@ -747,10 +729,6 @@ void exit_player_with_rc(struct MPContext *mpctx, enum exit_reason how, int rc)
current_module = "uninit_input";
mp_input_uninit(mpctx->input);
-#ifdef CONFIG_MENU
- if (use_menu)
- menu_uninit();
-#endif
#ifdef CONFIG_FREETYPE
current_module = "uninit_font";
@@ -2731,22 +2709,6 @@ int reinit_video_chain(struct MPContext *mpctx)
};
sh_video->vfilter = vf_open_filter(opts, NULL, "vo", vf_arg);
}
-#ifdef CONFIG_MENU
- if (use_menu) {
- char *vf_arg[] = {
- "_oldargs_", menu_root, NULL
- };
- vf_menu = vf_open_plugin(opts, libmenu_vfs, sh_video->vfilter, "menu",
- vf_arg);
- if (!vf_menu) {
- mp_tmsg(MSGT_CPLAYER, MSGL_ERR, "Can't open libmenu video filter "
- "with root menu %s.\n", menu_root);
- use_menu = 0;
- }
- }
- if (vf_menu)
- sh_video->vfilter = vf_menu;
-#endif
#ifdef CONFIG_ASS
if (opts->ass_enabled) {
@@ -3084,10 +3046,6 @@ static void pause_loop(struct MPContext *mpctx)
}
if (mpctx->sh_video && mpctx->video_out)
vo_check_events(mpctx->video_out);
-#ifdef CONFIG_MENU
- if (vf_menu)
- vf_menu_pause_update(vf_menu);
-#endif
usec_sleep(20000);
update_osd_msg(mpctx);
int hack = vo_osd_changed(0);
@@ -4221,27 +4179,6 @@ int main(int argc, char *argv[])
// Set the libstream interrupt callback
stream_set_interrupt_callback(mp_input_check_interrupt, mpctx->input);
-#ifdef CONFIG_MENU
- if (use_menu) {
- if (menu_cfg && menu_init(mpctx, mpctx->mconfig, mpctx->input, menu_cfg))
- mp_tmsg(MSGT_CPLAYER, MSGL_V, "Menu initialized: %s\n", menu_cfg);
- else {
- menu_cfg = get_path("menu.conf");
- if (menu_init(mpctx, mpctx->mconfig, mpctx->input, menu_cfg))
- mp_tmsg(MSGT_CPLAYER, MSGL_V, "Menu initialized: %s\n", menu_cfg);
- else {
- if (menu_init(mpctx, mpctx->mconfig, mpctx->input,
- MPLAYER_CONFDIR "/menu.conf"))
- mp_tmsg(MSGT_CPLAYER, MSGL_V, "Menu initialized: %s\n", MPLAYER_CONFDIR "/menu.conf");
- else {
- mp_tmsg(MSGT_CPLAYER, MSGL_ERR, "Menu init failed.\n");
- use_menu = 0;
- }
- }
- }
- }
-#endif
-
current_module = NULL;
/// Catch signals