fix errors

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: efd283ae1e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-01-20 (Wed, 20 Jan 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2010-01-20 18:54:51 +00:00
parent 3e202f98e6
commit e46c8509d6
2 changed files with 4 additions and 1 deletions

View File

@@ -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);

View File

@@ -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));