Merge pull request #4653 from FernetMenta/paplayer
authorjmarshallnz <jcmarsha@gmail.com>
Tue, 6 May 2014 22:42:36 +0000 (10:42 +1200)
committerJonathan Marshall <jmarshall@never.you.mind>
Tue, 6 May 2014 22:43:28 +0000 (10:43 +1200)
paplayer: fix mp4 playback

xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamFile.cpp
xbmc/cores/paplayer/DVDPlayerCodec.cpp

index 122e922..1b0f7e8 100644 (file)
@@ -91,7 +91,7 @@ bool CDVDInputStreamFile::Open(const char* strFile, const std::string& content)
   if (m_pFile->GetImplemenation() && (content.empty() || content == "application/octet-stream"))
     m_content = m_pFile->GetImplemenation()->GetContent();
 
-  m_eof = true;
+  m_eof = false;
   return true;
 }
 
index 441bcd8..88dad07 100644 (file)
@@ -197,8 +197,6 @@ bool DVDPlayerCodec::Init(const CStdString &strFile, unsigned int filecache)
   m_bCanSeek = false;
   if (m_pInputStream->Seek(0, SEEK_POSSIBLE))
   {
-    // reset eof flag of stream, with eof set seek returns always success
-    m_pInputStream->Seek(0, SEEK_SET);
     if (Seek(1) != DVD_NOPTS_VALUE)
     {
       // rewind stream to beginning