fix up libxmltree interfaces, so that useless casts can be removed

Lots of places hat casts from (const char*) to (char *) to silence
a "deprecated conversion" warning. Instead of casting (which is
inherently wrong), fix up the libxmltree interfaces.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@117 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 8070a9613d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-22 (Tue, 22 Dec 2009)
This commit is contained in:
Stefan Seyfried
2009-12-22 16:11:40 +00:00
parent c399c652f1
commit 3d5daa65fe
14 changed files with 276 additions and 225 deletions

View File

@@ -367,10 +367,10 @@ bool CMovieInfo::parseXmlTree(char */*text*/, MI_MOVIE_INFO * /*movie_info*/)
for (XMLTreeNode * xam2 = xam1->GetChild(); xam2; xam2 = xam2->GetNext()) {
if (!strcmp(xam2->GetType(), MI_XML_TAG_AUDIO)) {
EPG_AUDIO_PIDS pids;
pids.epgAudioPid = atoi(xam2->GetAttributeValue((char *)MI_XML_TAG_PID));
pids.atype = atoi(xam2->GetAttributeValue((char *)MI_XML_TAG_ATYPE));
pids.selected = atoi(xam2->GetAttributeValue((char *)MI_XML_TAG_SELECTED));
pids.epgAudioPidName = xam2->GetAttributeValue((char *)MI_XML_TAG_NAME);
pids.epgAudioPid = atoi(xam2->GetAttributeValue(MI_XML_TAG_PID));
pids.atype = atoi(xam2->GetAttributeValue(MI_XML_TAG_ATYPE));
pids.selected = atoi(xam2->GetAttributeValue(MI_XML_TAG_SELECTED));
pids.epgAudioPidName = xam2->GetAttributeValue(MI_XML_TAG_NAME);
//printf("MOVIE INFO: apid %d type %d name %s selected %d\n", pids.epgAudioPid, pids.atype, pids.epgAudioPidName.c_str(), pids.selected);
movie_info->audioPids.push_back(pids);
}