gui/movieinfo.cpp: comment pids debug, show full name on errors

Origin commit data
------------------
Commit: 62328467c3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-27 (Sat, 27 Sep 2014)
This commit is contained in:
[CST] Focus
2014-09-27 15:16:05 +04:00
parent 526acd76d9
commit b634aefe85

View File

@@ -735,7 +735,7 @@ bool CMovieInfo::parseXmlQuickFix(std::string &_text, MI_MOVIE_INFO * movie_info
} }
} }
} }
printf("MOVIE INFO: apid %d type %d name %s selected %d\n", audio_pids.epgAudioPid, audio_pids.atype, audio_pids.epgAudioPidName.c_str(), audio_pids.selected); //printf("MOVIE INFO: apid %d type %d name %s selected %d\n", audio_pids.epgAudioPid, audio_pids.atype, audio_pids.epgAudioPidName.c_str(), audio_pids.selected);
movie_info->audioPids.push_back(audio_pids); movie_info->audioPids.push_back(audio_pids);
} }
/* parse bookmarks */ /* parse bookmarks */
@@ -907,7 +907,7 @@ bool CMovieInfo::loadFile(CFile & file, std::string &buffer)
int fd = open(file.Name.c_str(), O_RDONLY); int fd = open(file.Name.c_str(), O_RDONLY);
if (fd == -1) // cannot open file, return!!!!! if (fd == -1) // cannot open file, return!!!!!
{ {
TRACE("[mi] loadXml: cannot open (%s)\r\n", file.getFileName().c_str()); TRACE("[mi] loadXml: cannot open (%s)\r\n", file.Name.c_str());
return false; return false;
} }
struct stat st; struct stat st;
@@ -917,7 +917,7 @@ bool CMovieInfo::loadFile(CFile & file, std::string &buffer)
} }
char buf[st.st_size]; char buf[st.st_size];
if (st.st_size != read(fd, buf, st.st_size)) { if (st.st_size != read(fd, buf, st.st_size)) {
TRACE("[mi] loadXml: cannot read (%s)\r\n", file.getFileName().c_str()); TRACE("[mi] loadXml: cannot read (%s)\r\n", file.Name.c_str());
result = false; result = false;
} else } else
buffer = std::string(buf, st.st_size); buffer = std::string(buf, st.st_size);