diff options
author | Christian <zerov83@gmail.com> | 2016-06-26 16:04:53 +0200 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-06-26 16:04:53 +0200 |
commit | d00510109018d19f9aaabdac8aa115a513e6ef0c (patch) | |
tree | e019e665dafc47fc4dfac7a5b4e77199006ab7b6 /plex.cpp | |
parent | d13d6f430cc29abf6920bef4ee9d3d3be11d52e6 (diff) | |
download | vdr-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.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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"); } |