[vlc-devel] [PATCH] Handle GET_PARAMETER keepalive responses during PAUSE

Ross Finlayson finlayson at live555.com
Thu Jun 25 21:27:01 CEST 2015


> Le jeudi 25 juin 2015, 12:10:30 Ross Finlayson a écrit :
>>> And so the other threads need to tell the live555 thread to do something.
>>> Except they cannot because the live555 is sleeping inside the live555
>>> event loop…
>> No, it’s not ‘sleeping’ - at least not for very long (*at most* 10ms inside
>> “select()", and that time’s configurable).
> 
> That is even worst.
> 
> The VLC process is not supposed to wake up while playback is paused

How do you handle the 'mouse click’ event on the ‘play’ button (when the user tells VLC to resume playing)?  Via a socket event?

But anyway, this is silly - why would you possibly object to the LIVE555 event loop thread waking up every 10ms (and then going straight back to sleep in “select()” if nothing else is happening)?

But if you *really* don’t want this happening, then you could disable this 10ms tick (through a parameter to the “BasicTaskScheduler” creation function), and then arrange for all communication/signaling with the LIVE555 event loop thread to happen via sockets (i.e., you could use a socket to communicate between the VLC app thread and the LIVE555 event loop thread).


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150625/e497923d/attachment.html>


More information about the vlc-devel mailing list