- add looping for ts playbacks (hack for prodrive)
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 1 Aug 2005 00:53:36 +0000 (00:53 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 1 Aug 2005 00:53:36 +0000 (00:53 +0000)
lib/base/filepush.cpp

index d873d2b..5413f04 100644 (file)
@@ -56,6 +56,11 @@ void eFilePushThread::thread()
                if (m_buf_end == 0)
                {
                        eDebug("FILEPUSH: end-of-file! (currently unhandled)");
                if (m_buf_end == 0)
                {
                        eDebug("FILEPUSH: end-of-file! (currently unhandled)");
+                       if (!lseek(m_fd_source, 0, SEEK_SET))
+                       {
+                               eDebug("(looping)");
+                               continue;
+                       }
                        break;
                }
 //             printf("FILEPUSH: read %d bytes\n", m_buf_end);
                        break;
                }
 //             printf("FILEPUSH: read %d bytes\n", m_buf_end);