[vlc-devel] Arggh! I fucked up. LIVE555 breaks VLC 1.1.6

Ross Finlayson finlayson at live555.com
Mon Jan 24 11:16:20 CET 2011

>  > (The reason I didn't notice this at the time is that the 1.1.x VLC
>>  tree still uses our old synchronous RTSP client interface; the 1.2.x
>>  tree uses the newer asynchronous interface that wasn't affected by the
>>  bug.)
>By the way the way we use the asynchronous interface is totally broken,
>requests and responses are not even processed in order.

I'm not sure I understand this.  If you're running a single LIVE555 
event loop (i.e., in just one thread), as you should, then RTSP 
responses will be processed in the order that they arrive.  Because a 
RTSP server handles incoming requests (for each client session) in 
order, and because requests are sent via TCP, this will also be the 
order in which the corresponding requests were sent.

>  What makes doEventLoop() return?

It will return if (and only if) its 'watch variable' parameter (if 
present) gets set to a non-zero value (perhaps by a separate thread).

Ross Finlayson
Live Networks, Inc.

More information about the vlc-devel mailing list