summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-21 18:28:48 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-21 18:28:48 +0000
commit00b3c781965e920f9672b7568d65acd44a47c84f (patch)
treebd97c00eae7dbcc107d6888828715c881f2c2778 /mplayer.c
parente1547563a929a1b923a708f7d9df062d68a2d11d (diff)
downloadmpv-00b3c781965e920f9672b7568d65acd44a47c84f.tar.bz2
mpv-00b3c781965e920f9672b7568d65acd44a47c84f.tar.xz
Fix menu to work with mpctx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22302 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index f2db0ae0fb..87eb8627c9 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -381,6 +381,16 @@ static unsigned int inited_flags=0;
#define mp_basename2(s) (strrchr(s,'/')==NULL?(char*)s:(strrchr(s,'/')+1))
+void *mpctx_get_video_out(MPContext *mpctx)
+{
+ return mpctx->video_out;
+}
+
+void *mpctx_get_playtree_iter(MPContext *mpctx)
+{
+ return mpctx->playtree_iter;
+}
+
static int is_valid_metadata_type (metadata_t type) {
switch (type)
{
@@ -2485,14 +2495,14 @@ current_module = NULL;
#ifdef HAVE_MENU
if(use_menu) {
- if(menu_cfg && menu_init(menu_cfg))
+ if(menu_cfg && menu_init(mpctx, menu_cfg))
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_MenuInitialized, menu_cfg);
else {
menu_cfg = get_path("menu.conf");
- if(menu_init(menu_cfg))
+ if(menu_init(mpctx, menu_cfg))
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_MenuInitialized, menu_cfg);
else {
- if(menu_init(MPLAYER_CONFDIR "/menu.conf"))
+ if(menu_init(mpctx, MPLAYER_CONFDIR "/menu.conf"))
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_MenuInitialized, MPLAYER_CONFDIR"/menu.conf");
else {
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_MenuInitFailed);