[Live-devel] A question about DeviceSource.cpp and eventTriggers

Jeff Shanab jshanab at smartwire.com
Fri Dec 30 12:44:00 PST 2011


I modeled my ESSource.cpp off of the DeviceSource.cpp and got everything working. Because of the application's many to many dynamic stream model, for each source, I have a unique environment as they each run in their own thread.

After I got it working for some reason only the first instance would pass data all the way through, the 2,3rd,and 4th that connected received all their data but neglected to signal the arrival. The problem simple but I am wondering why the DeviceSource was that way, that I may be missing something important. The EventTrigerId was static. This caused it to be shared across all instances and therefore get updated and only trigger one environments stream to call the AfterGettingFrame of the next guy.  So my question is why is this static? Should it be part of a custom env?  Just trying to understand this.  For the life of me I don't see why it didn't only work on the last stream and not first stream. :)

I just made it a nonstatic class member and initialized it in the ctor and all instances start to stream.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111230/33cae8d1/attachment.html>


More information about the live-devel mailing list