diff options
author | chriszero <zerov83@gmail.com> | 2015-02-21 16:43:14 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-21 16:43:14 +0100 |
commit | 2d8e03d177d20f22c2776b77b2d704a5009ce0fa (patch) | |
tree | 6969a3735fcc106b6f744417587ef8766d8b225a /Plexservice.cpp | |
parent | 37043899a114c20b50d26ceb2992c2e670b6024e (diff) | |
download | vdr-plugin-plex-2d8e03d177d20f22c2776b77b2d704a5009ce0fa.tar.gz vdr-plugin-plex-2d8e03d177d20f22c2776b77b2d704a5009ce0fa.tar.bz2 |
Add feature: recovers menustate before playing
Diffstat (limited to 'Plexservice.cpp')
-rw-r--r-- | Plexservice.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Plexservice.cpp b/Plexservice.cpp index a61caec..d208882 100644 --- a/Plexservice.cpp +++ b/Plexservice.cpp @@ -145,11 +145,13 @@ std::shared_ptr<MediaContainer> Plexservice::GetSection(std::string section, boo } } -std::shared_ptr<MediaContainer> Plexservice::GetLastSection() +std::shared_ptr<MediaContainer> Plexservice::GetLastSection(bool current) { if(m_vUriStack.size() > 1) { - // discard last one - m_vUriStack.pop(); + if(!current) { + // discard last one + m_vUriStack.pop(); + } std::string uri = m_vUriStack.top(); return GetSection(uri, false); } |