<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] LiveMedia in a Directshow
Filter</title></head><body>
<blockquote type="cite" cite>while(true)</blockquote>
<blockquote type="cite" cite>{</blockquote>
<blockquote type="cite" cite>     
fWatchVariable = 0;</blockquote>
<blockquote type="cite" cite>     
dummyTask(NULL); // 100ms</blockquote>
<blockquote type="cite" cite>     
env->taskScheduler().doEventLoop(&fWatchVariable);</blockquote>
<blockquote type="cite" cite>      if
(fWatchVariable = 1)</blockquote>
<blockquote type="cite" cite>     
{</blockquote>
<blockquote type="cite"
cite>           
printf("\nIn While fWatchVariable=%d,",fWatchVariable); 
</blockquote>
<blockquote type="cite"
cite>           
if (!mP4LiveSms->mpeg4LiveSource != NULL)</blockquote>
<blockquote type="cite"
cite
>           <span
></span
>           <span
></span>       
mP4LiveSms->mpeg4LiveSource->deliverFrame();</blockquote>
<blockquote type="cite" cite>     
}</blockquote>
<blockquote type="cite" cite>}</blockquote>
<div><br></div>
<div>Note that you don't need to test for "if (fWatchVariable ==
1)", because we return from "doEventLoop()" only if
"fWatchVariable" is not 0.  (I presume that you have
some other thread - not running LIVE555 code - that is setting
"fWatchVariable" to 1 when new data becomes
available.)</div>
<div><br></div>
<div><br></div>
<blockquote type="cite"
cite>RTSPClientSession[00E79B20]::handleRequestBytes()<b> read 0 new
bytes</b> (of 9836);<b> te</b></blockquote>
<blockquote type="cite" cite><b>rminating connection!</b></blockquote>
<div><br></div>
<div>This is strange.  Your client's TCP connection (for RTSP)
has unexpectedly ended.  This might not have anything to do with
your server's new code.</div>
<div><br></div>
<div>I suggest that you first try to run the *unmodified*
"testOnDemandRTSPServer" demo application on your system -
streaming from a MPEG-4 Elementary Stream Video - i.e., ".m4e"
- file.  Only when you get this running correctly, then you can
try modifying it to stream from another kind of input source
object.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>