}
case S_PAUSE_P: // to S_PAUSE_P
{
+ #ifdef VOMP_PLATTFORM_RASPBERRY
+ vfeed.stop(); // can't vfeed during pause
+ #endif
+
video->pause();
audio->pause();
state = S_PAUSE_P;
{
video->unPause();
audio->unPause();
+
+ #ifdef VOMP_PLATTFORM_RASPBERRY
+ vfeed.start(false);
+ #endif
+
state = S_PLAY;
return;
}
return 1;
}
-int VFeed::start()
+int VFeed::start(bool tWaitForSignal)
{
+ waitForSignal = tWaitForSignal;
return threadStart();
}
bool vlen;
Log::getInstance()->log("VFeed", Log::DEBUG, "Started");
- threadWaitForSignal(); // Don't feed video until audio has started
+ if (waitForSignal) threadWaitForSignal(); // Don't feed video until audio has started
Log::getInstance()->log("VFeed", Log::DEBUG, "Released");
while(1)