diff options
author | chriszero <zerov83@gmail.com> | 2015-01-28 21:17:18 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-01-28 21:17:18 +0100 |
commit | 87eb8a9e931606da4197391b6e3a09376b1383c2 (patch) | |
tree | 9427c28a2d7e9e44d4d77dc7fe53ff91f5152e23 /Media.cpp | |
parent | 1da4dbe662e75be47e046472137c6bd72daa7b4d (diff) | |
download | vdr-plugin-plex-87eb8a9e931606da4197391b6e3a09376b1383c2.tar.gz vdr-plugin-plex-87eb8a9e931606da4197391b6e3a09376b1383c2.tar.bz2 |
- Counting played time correctly
- Implemented switching audiostreams
- Removed some compile warnings
Diffstat (limited to 'Media.cpp')
-rw-r--r-- | Media.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -30,7 +30,6 @@ Media::Media(Poco::XML::Node* pNode) } if(Poco::icompare(pChildNode->nodeName(), "Part") == 0) { - Poco::XML::AutoPtr<Poco::XML::NamedNodeMap> pAttribs = pChildNode->attributes(); m_sPartKey = GetNodeValue(pAttribs->getNamedItem("key")); m_iPartId = GetNodeValueAsInt(pAttribs->getNamedItem("id")); @@ -41,14 +40,11 @@ Media::Media(Poco::XML::Node* pNode) pAttribs->release(); } + if(Poco::icompare(pChildNode->nodeName(), "Stream") == 0) { + m_vStreams.push_back(Stream(pChildNode)); + } pChildNode = it.nextNode(); } } -Media::~Media() -{ } - - -} - |