[vlc-devel] [PATCH] Handle GET_PARAMETER keepalive responses during PAUSE
finlayson at live555.com
Thu Jun 25 11:59:51 CEST 2015
> The problem arises because the Demux() function of the module that usually does the GET_PARAMETER is not called while the stream is paused, so another thread was created to do it. Maybe the core VLC developers can point me to another mechanism for getting regular flow-of-control within the main thread - some kind of Tick() function - which could be used to send the GET_PARAMETER independently of whether it is paused or not?
The usual way to do this sort of thing - within the LIVE555 event loop - is to call
to periodically schedule a task that sends the “GET_PARAMETER” command (and then calls "TaskScheduler::scheduleDelayedTask()” again). If you move the call to “sendGetParameterCommand()” from the “Demux()” function to this new handler task, then that should solve your problem - and all LIVE555 functions will continue to be called only from the LIVE555 event loop thread, as they should.
But again, I’m not an expert on (nor responsible for) the “live555.cpp” code, so caveat emptor...
Live Networks, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel