summaryrefslogtreecommitdiff
path: root/plex.cpp
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-06-26 16:04:53 +0200
committerChristian <zerov83@gmail.com>2016-06-26 16:04:53 +0200
commitd00510109018d19f9aaabdac8aa115a513e6ef0c (patch)
treee019e665dafc47fc4dfac7a5b4e77199006ab7b6 /plex.cpp
parentd13d6f430cc29abf6920bef4ee9d3d3be11d52e6 (diff)
downloadvdr-plugin-plex-0.4.0.tar.gz
vdr-plugin-plex-0.4.0.tar.bz2
Fixes mirror mode.0.4.0
Diffstat (limited to 'plex.cpp')
-rw-r--r--plex.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plex.cpp b/plex.cpp
index 408f01f..5c6923f 100644
--- a/plex.cpp
+++ b/plex.cpp
@@ -206,7 +206,7 @@ cOsdObject *cMyPlugin::MainMenuAction(void) {
if (bSkindesigner && m_pTestOsd->SdSupport()) {
if (m_bShowInfo) {
m_bShowInfo = false;
- return new cPlexSdOsd(m_pPlugStruct, &action.video);
+ return new cPlexSdOsd(m_pPlugStruct, action.container);
}
return new cPlexSdOsd(m_pPlugStruct);
}
@@ -227,9 +227,10 @@ void cMyPlugin::MainThreadHook(void) {
if (ActionManager::GetInstance().IsAction()) {
action = ActionManager::GetInstance().GetAction();
if(action.type == ActionType::Play) {
- PlayFile(action.video);
+ if(action.container->m_vVideos.size() > 0)
+ PlayFile(action.container->m_vVideos[0]);
}
- else if (action.type == ActionType::Display) {
+ else if (bSkindesigner && action.type == ActionType::Display) {
m_bShowInfo = true;
cRemote::CallPlugin("plex");
}