[Live-devel] OnDemand live input

Ross Finlayson finlayson at live.com
Fri Jul 22 03:22:25 PDT 2005


>The class sets reuseFirstSource to True, but its createNewStreamSource
>function gets called for every new client.  Is this correct behavior

No.

If you look at "OnDemandServerMediaSubsession.cpp", you'll see that 
"createNewStreamSource()" should be called only twice for each 
"ServerMediaSubsession" instance (*not* for every new client that uses it):
1/ Once in "OnDemandServerMediaSubsession::sdpLines()".  Note: Make sure 
that "fSDPLines" gets set correctly, otherwise this code will end up 
getting called for each new client.
2/ Once in 
"OnDemandServerMediaSubsession::getStreamParameters()".  However, in your 
case - because "fReuseFirstSource" is true - this code will also end up 
getting executed only once.

So, you need to trace through the code to figure out what's going wrong in 
your case.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list