<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div bgcolor="#FFFFFF" text="#000000" class="">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?<br class=""></div></div></blockquote><div><br class=""></div>The usual way to do this sort of thing - within the LIVE555 event loop - is to call</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>TaskScheduler::scheduleDelayedTask()</div><div>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.</div><div><br class=""></div><div>But again, I’m not an expert on (nor responsible for) the “live555.cpp” code, so caveat emptor...</div><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>