From: Chris Tallon Date: Fri, 5 May 2006 21:50:05 +0000 (+0000) Subject: Sync bugs X-Git-Tag: r0-2-2b~17 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=9e07476ad34f0791620b06dd71bf67a13634cc69;p=vompclient.git Sync bugs --- diff --git a/vfeed.cc b/vfeed.cc index 679db04..7b64904 100644 --- 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 1525b41..b1cb204 100644 --- a/vfeed.h +++ b/vfeed.h @@ -49,6 +49,7 @@ class VFeed : public Thread_TYPE int start(); void stop(); + void release(); private: void threadMethod();