[Live-devel] Is it valid to call startPlaying on a MediaSink AFTER TaskScheduler->doEventLoop()?

Ross Finlayson finlayson at live555.com
Mon Jun 27 15:49:48 PDT 2016


Yes, you can call any of these functions while you’re in the event loop.  In fact, there’s no reason in principle why your “main()” function can’t just be nothing but a call to “doEventLoop()” - so that everything gets called from event handlers.  (In practice, however, “main()” needs to do some initial setup to ensure that events start happening - before the call to “doEventLoop()”.)

But once you’re in the event loop (and thus are handling events), you can call whatever functions you like.


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




More information about the live-devel mailing list