[Live-devel] DeviceSource question

Bartha Adam bartha_adam at yahoo.com
Mon Apr 27 00:14:55 PDT 2009


Hello All,

I am trying to implement a DeviceSource, based on the: http://www.live555.com/liveMedia/doxygen/html/DeviceSource_8cpp-source.html

My doGetNextFrame() methode is called once, at the beginning, when no data is available.
In this case, based on the comments in the sample file, the doGetNextFrame has to return imediately, right (without waiting for a frame)?

// This must be done in a non-blocking fashion - i.e., so that we
// return immediately from this function even if no data is
// currently available.

This is my code:

img = imgBuffer->getNextImage();
if(img.size==0)
{
	fFrameSize = 0;
	fNumTruncatedBytes = 0;
	return;
}

After this first call, the doGetNextFrame will be never called.
I am missing something?

Regards,
Gr3go







      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090427/85e27c08/attachment.html>


More information about the live-devel mailing list