From 9e07476ad34f0791620b06dd71bf67a13634cc69 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Fri, 5 May 2006 21:50:05 +0000 Subject: [PATCH] Sync bugs --- vfeed.cc | 9 +++++++-- vfeed.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) 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(); -- 2.39.2