From b634aefe859cb0deddf34ef0dd9a8d3daad158f9 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sat, 27 Sep 2014 15:16:05 +0400 Subject: [PATCH] gui/movieinfo.cpp: comment pids debug, show full name on errors Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/62328467c3d2c77dda008f87b90bc9ba6ca4f79e Author: [CST] Focus Date: 2014-09-27 (Sat, 27 Sep 2014) --- src/gui/movieinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/movieinfo.cpp b/src/gui/movieinfo.cpp index d170dc2a7..9609688de 100644 --- a/src/gui/movieinfo.cpp +++ b/src/gui/movieinfo.cpp @@ -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); } /* parse bookmarks */ @@ -907,7 +907,7 @@ bool CMovieInfo::loadFile(CFile & file, std::string &buffer) int fd = open(file.Name.c_str(), O_RDONLY); 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; } struct stat st; @@ -917,7 +917,7 @@ bool CMovieInfo::loadFile(CFile & file, std::string &buffer) } char 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; } else buffer = std::string(buf, st.st_size);