<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello All,<br><br>I am trying to implement a DeviceSource, based on the: <a href="http://www.live555.com/liveMedia/doxygen/html/DeviceSource_8cpp-source.html">http://www.live555.com/liveMedia/doxygen/html/DeviceSource_8cpp-source.html</a><br><br>My doGetNextFrame() methode is called once, at the beginning, when no data is available.<br>In this case, based on the comments in the sample file, the doGetNextFrame has to return imediately, right (without waiting for a frame)?<br><pre class="fragment"><span class="comment"><br>// This must be done in a non-blocking fashion - i.e., so that we</span><br><a name="l00042"></a><span class="comment">// return immediately from this function even if no data is</span><br><a name="l00043"></a><span class="comment">// currently available.</span><br><br>This is my code:<br><br><a class="code"
href="http://www.live555.com/liveMedia/doxygen/html/classDeviceSource.html#34052c3dd034cd85511c89fe3dc05261"></a><span style="font-style: italic;">img = imgBuffer->getNextImage();</span><br><span style="font-style: italic;">if(img.size==0)</span><span style="font-style: italic;"><br>{</span><br style="font-style: italic;"><span style="font-style: italic;">        fFrameSize = 0;</span><br style="font-style: italic;"><span style="font-style: italic;">        fNumTruncatedBytes = 0;</span><br style="font-style: italic;"><span style="font-style: italic;">        return;</span><br style="font-style: italic;"><span style="font-style: italic;">}<br><br></span>After this first call, the doGetNextFrame will be never called.<br>I am missing something?<br><br>Regards,<br>Gr3go<br><br><br><br></pre><br></td></tr></table><br>