summaryrefslogtreecommitdiff
path: root/mpv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpv.c')
-rw-r--r--mpv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpv.c b/mpv.c
index fae3986..ffd8afd 100644
--- a/mpv.c
+++ b/mpv.c
@@ -15,6 +15,8 @@
#include "control.h"
#include "setup.h"
#include "playmenu.h"
+#include "player.h"
+#include "menu_options.h"
#include "mpv_service.h"
static const char *VERSION = "0.0.4"
@@ -64,6 +66,8 @@ cMpvPlugin::~cMpvPlugin(void)
cOsdObject *cMpvPlugin::MainMenuAction(void)
{
+ if (cMpvPlayer::PlayerIsRunning())
+ return new cMpvMenuOptions(cMpvPlayer::Player());
return new cPlayMenu("MPV");
}