]> git.vomp.tv Git - vompclient.git/commitdiff
Sync bugs
authorChris Tallon <chris@vomp.tv>
Fri, 5 May 2006 21:50:05 +0000 (21:50 +0000)
committerChris Tallon <chris@vomp.tv>
Fri, 5 May 2006 21:50:05 +0000 (21:50 +0000)
vfeed.cc
vfeed.h

index 679db04f4f560c9041f614599818500f287a971c..7b649048df0d01fbe7fae5bad246b05331d32bc3 100644 (file)
--- a/vfeed.cc
+++ b/vfeed.cc
@@ -55,12 +55,17 @@ void VFeed::stop()
   threadCancel();
 }
 
-void VFeed::threadMethod()
+void VFeed::release()
 {
-  Log::getInstance()->log("VFeed", Log::DEBUG, "Started");
+  threadSignal();
+}
 
+void VFeed::threadMethod()
+{
   int vlen;
 
+  threadWaitForSignal(); // Don't feed video until audio has started
+
   while(1)
   {
 #ifndef NEW_DEMUXER
diff --git a/vfeed.h b/vfeed.h
index 1525b4131b40da75bfa66eadf0e728dade71d265..b1cb2040096e915cd6facaa4679bfee9ca012074 100644 (file)
--- a/vfeed.h
+++ b/vfeed.h
@@ -49,6 +49,7 @@ class VFeed : public Thread_TYPE
 
     int start();
     void stop();
+    void release();
 
   private:
     void threadMethod();