mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
fix errors
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@195 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -341,11 +341,13 @@ bool CMovieInfo::parseXmlTree(char */*text*/, MI_MOVIE_INFO * /*movie_info*/)
|
||||
XMLTreeNode *root = parser->RootNode();
|
||||
if (!root) {
|
||||
TRACE(" root error \r\n");
|
||||
delete parser;
|
||||
return (false);
|
||||
}
|
||||
|
||||
if (strcmp(root->GetType(), MI_XML_TAG_NEUTRINO)) {
|
||||
TRACE("not neutrino file. %s", root->GetType());
|
||||
delete parser;
|
||||
return (false);
|
||||
}
|
||||
|
||||
@@ -922,6 +924,7 @@ bool CMovieInfo::loadFile_std(CFile & file, char *buffer, int buffer_size)
|
||||
if (bytes <= 0) // cannot read file into buffer, return!!!!
|
||||
{
|
||||
TRACE("[mi] loadXml: cannot read (%s)\r\n", file.getFileName().c_str());
|
||||
close(fd);
|
||||
return false;
|
||||
}
|
||||
close(fd);
|
||||
|
@@ -32,7 +32,7 @@ ringbuffer_t *
|
||||
ringbuffer_create (int sz)
|
||||
{
|
||||
int power_of_two;
|
||||
ringbuffer_t *rb;
|
||||
ringbuffer_t *rb = NULL;
|
||||
|
||||
rb = malloc (sizeof (ringbuffer_t));
|
||||
|
||||
|
Reference in New Issue
Block a user