diff options
author | chriszero <zerov83@gmail.com> | 2015-02-19 20:52:27 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-19 20:52:27 +0100 |
commit | 31e3ce3d0e9866a62b2d381f2ede9319840c9dea (patch) | |
tree | 4eeace9987cd8cf04ed9ce333987545665dd287d | |
parent | 7de1748cbaf31337f1f592cc9ee47f7872333f33 (diff) | |
download | vdr-plugin-plex-31e3ce3d0e9866a62b2d381f2ede9319840c9dea.tar.gz vdr-plugin-plex-31e3ce3d0e9866a62b2d381f2ede9319840c9dea.tar.bz2 |
typo
-rw-r--r-- | Config.h | 2 | ||||
-rw-r--r-- | SubscriptionManager.cpp | 31 |
2 files changed, 17 insertions, 16 deletions
@@ -28,7 +28,7 @@ public: std::string s_password; bool HideMainMenuEntry; - bool UseCustomTranscodeProfile = false; + bool UseCustomTranscodeProfile; std::string GetUUID(); void SetUUID(const char* uuid); diff --git a/SubscriptionManager.cpp b/SubscriptionManager.cpp index 47bd6f2..033776a 100644 --- a/SubscriptionManager.cpp +++ b/SubscriptionManager.cpp @@ -155,21 +155,21 @@ std::string SubscriptionManager::GetTimelineXml() else msg << "playing"; msg << "\" time=\"" << current << "\" type=\"video\""; - - msg << " duration=\"" << total << "\""; - msg << " seekRange=\"0-" << total << "\""; - msg << " controllable=\"true\""; - msg << " machineIdentifier=\"" << (pVid ? pVid->m_Server.GetUuid() : "") << "\""; - msg << " protocol=\"http\""; - msg << " address=\"" << (pVid ? pVid->m_Server.GetIpAdress() : "") << "\""; - msg << " port=\"" << (pVid ? pVid->m_Server.GetPort() : 0) << "\""; - msg << " guid=\"" << Config::GetInstance().GetUUID() << "\""; - msg << " containerKey=\"" << (pVid ? pVid->m_sKey : "/library/metadata/900000") << "\""; - msg << " key=\"" << (pVid ? pVid->m_sKey : "/library/metadata/900000") << "\""; - msg << " ratingKey=\"" << (pVid ? pVid->m_iRatingKey : 900000) << "\""; - msg << " volume=\"" << m_pStatus->Volume << "\""; - msg << " shuffle=\"false\""; - + if (!m_pStatus->PlayerStopped) { + msg << " duration=\"" << total << "\""; + msg << " seekRange=\"0-" << total << "\""; + msg << " controllable=\"true\""; + msg << " machineIdentifier=\"" << (pVid ? pVid->m_Server.GetUuid() : "") << "\""; + msg << " protocol=\"http\""; + msg << " address=\"" << (pVid ? pVid->m_Server.GetIpAdress() : "") << "\""; + msg << " port=\"" << (pVid ? pVid->m_Server.GetPort() : 0) << "\""; + msg << " guid=\"" << Config::GetInstance().GetUUID() << "\""; + msg << " containerKey=\"" << (pVid ? pVid->m_sKey : "/library/metadata/900000") << "\""; + msg << " key=\"" << (pVid ? pVid->m_sKey : "/library/metadata/900000") << "\""; + msg << " ratingKey=\"" << (pVid ? pVid->m_iRatingKey : 900000) << "\""; + msg << " volume=\"" << m_pStatus->Volume << "\""; + msg << " shuffle=\"false\""; + } msg << "/>"; return msg.str(); } @@ -255,6 +255,7 @@ void cSubscriberStatus::Replaying(const cControl* DvbPlayerControl, const char* pVideo = &hlsControl->m_Video; } else { pVideo = NULL; + pControl = NULL; } SubscriptionManager::GetInstance().Notify(); |