[Live-devel] LiveMedia in a Directshow Filter

Ross Finlayson finlayson at live555.com
Mon Nov 29 07:41:54 PST 2010


>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/


More information about the live-devel mailing list