boxstack->update(vw);
// Enter pre-keys here
-// handleCommand(Remote::OK);
+ handleCommand(Remote::OK);
// handleCommand(Remote::ONE);
// handleCommand(Remote::SIX);
-// handleCommand(Remote::OK);
+ handleCommand(Remote::OK);
// handleCommand(Remote::UP);
// handleCommand(Remote::PLAY);
// handleCommand(Remote::DOWN);
// For blocking version, not callback version. Call with edLock locked
#ifndef WIN32
- pthread_cond_init(&edr->cond, NULL);
pthread_cond_wait(&edr->cond, &mutex);
#else
- edr->cond = CreateEvent(NULL,/*FALSE*/TRUE,FALSE,NULL);
+ ResetEvent(edr->cond);
ReleaseMutex(mutex);
WaitForSingleObject(edr->cond,INFINITE);
ResetEvent(edr->cond);
{
nomorecalls = false;
callinprogress = false;
-#ifdef WIN32
- cond=NULL;
+#ifndef WIN32
+ pthread_cond_init(&cond, NULL);
+#else
+ cond = CreateEvent(NULL,/*FALSE*/TRUE,FALSE,NULL);
#endif
}
{
#ifdef WIN32
if (cond!=NULL) CloseHandle(cond);
+#else
+ pthread_cond_destroy(&cond);
#endif
}
if (TEMP_SINGLE_VDR_PR) // this block only needs to be done if it was a live stream
// TEMP_SINGLE_VDR_PR will not be set unless we are streaming a channel
{
+ logger->log("VDR", Log::DEBUG, "About to call edUnregister on stream receiver vdrpr");
edUnregister(TEMP_SINGLE_VDR_PR);
delete TEMP_SINGLE_VDR_PR;
TEMP_SINGLE_VDR_PR = NULL;