[Live-devel] DeviceSource.cpp impacts on sockets

Rafael Madeira rafael.madeira at idea-ip.com
Tue Mar 29 07:57:33 PDT 2011


Hi,

I'm adapting live555 to stream from a live source and using
testMPEG2TransportStreamer.cpp and
http://www.live555.com/liveMedia/faq.html#liveInput as reference.

I got all necessary code to startup a RTP server and start playing and put
on my source code.

As explained on the FAQ, i substitue *ByteStreamFileSource and **
MPEG2TransportStreamFramer* layers by the DeviceSource one.

Using DDD to degub a segmentation fault bug, i found thats is caused by a
call to socketErr() made by writeSocket() ( more precisely, "*if
(setsockopt(socket, IPPROTO_IP, IP_MULTICAST_TTL,(const char*)&ttl, sizeof
ttl) < 0)" *line call).

The only two functions my app call by DeviceSource class are
DeviceSource::doGetNextFrame() and DeviceSource::deliverFrame(), as i can
see in DDD backtace feture.

In the first one i get news buffers with TS data to be streamed. At the
second i set pointers to data content and buffer size (as required by
template).

How could DeviceSource changes impact on socket issues??

Thanks,

-- 
Att,

Rafael Madeira
Idea! Electronic Systems
www.idea-ip.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110329/6067aa3a/attachment.html>


More information about the live-devel mailing list