From 87eb8a9e931606da4197391b6e3a09376b1383c2 Mon Sep 17 00:00:00 2001 From: chriszero Date: Wed, 28 Jan 2015 21:17:18 +0100 Subject: - Counting played time correctly - Implemented switching audiostreams - Removed some compile warnings --- Media.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Media.cpp') diff --git a/Media.cpp b/Media.cpp index 4837bc7..8147e5c 100644 --- a/Media.cpp +++ b/Media.cpp @@ -30,7 +30,6 @@ Media::Media(Poco::XML::Node* pNode) } if(Poco::icompare(pChildNode->nodeName(), "Part") == 0) { - Poco::XML::AutoPtr 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() -{ } - - -} - -- cgit v1.2.3