while(true) { fWatchVariable = 0; dummyTask(NULL); // 100ms env->taskScheduler().doEventLoop(&fWatchVariable); if (fWatchVariable = 1) { printf("\nIn While fWatchVariable=%d,",fWatchVariable); if (!mP4LiveSms->mpeg4LiveSource != NULL) mP4LiveSms->mpeg4LiveSource->deliverFrame(); } }
Also, don't forget to reset "fWatchVariable" back to 0 immediately after you return from "doEventLoop()" (i.e., before you call "doEventLoop()" again), so that you don't unexpectedly return from "doEventLoop()" the next time.
-- Ross Finlayson Live Networks, Inc. http://www.live555.com/ _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel