[Live-devel] doEventLoop

Aditya Vikram aditya.vikram at aricent.com
Thu Jan 22 03:27:00 PST 2009


I have written directshow filter for receiving streams.I have encapsulate playcomman.cpp in my code. I am able to play the stream  I have spawn a thread

startStreaming
{
 Watch = 0
 Spawn the Thread
}

Thread
{
 startPlayingStreams();
 env->taskScheduler().doEventLoop(&watch)
}

In stopStreaming()
{
Watch = 1;// it force doEventLoop to exit
sessionAfterPlaying();
//if I use this method I successfully send and recive Teradown message.
//If comment watch=1 then teardown response become wrong WHY ?
}

In pauseStreaming
{
Watch = 1;// it force doEventLoop to exit as well as
pauseMediaSession ();
//if I use this method I successfully send and recive pause message.
//If comment watch=1 then pause response become wrong WHY ?
}

After pause streaming again I invoke startStreaming but after this call bytesReads() (groupsockhelper.cpp) return -1 ?





________________________________
From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Thursday, January 22, 2009 11:47 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] doEventLoop with fWatchVariable

I am using the fWatchVariable to notift the eventLoop to exit. (as it should be)
However if no connection is avaialble (nothing is waking the loop), this variable will not be tested and the eventLoop is blocked.
Is there some "refresh" command to the loop that will force it to wake , so the variable can be tested?

Yes, see http://lists.live555.com/pipermail/live-devel/2006-March/004192.html

--

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

________________________________
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090122/1621a94b/attachment-0001.html>


More information about the live-devel mailing list