[Live-devel] (no subject)
Richy Mong
richymong at gmail.com
Wed Jan 27 19:53:25 PST 2010
Hi Ross,
I am new to live555 and trying to use this powerful lib to
stream live video.I received the video data from the network with my
server and then streamed it with live555.For the client,I useed VLC.
However,I got some problems here.
1. There are two memory leaks here.I write my programs following
the test***streamer and free the memory as the following:
if (sessionState.sink != NULL) sessionState.sink->stopPlaying();
Medium::close(sessionState.rtcpInstance);
Medium::close(sessionState.sink);
Medium::close(sessionState.source);
Medium::close(sms);
Medium::close(rtspServer);
delete sessionState.rtpGroupsock;
delete sessionState.rtcpGroupsock;
if(scheduler) delete scheduler;
if(env) env->reclaim();
If I just create the sink、sourc、rtspserver etc and don't
startplaying,there will be no memory leak.But if I add
startplaying,after I close the server,there will be two memory leaks :
Detected memory leaks!
Dumping objects ->
{594258} normal block at 0x003CC818, 32 bytes long.
Data: <l G > 6C 0F 47 00 00 00 00 00 00 00 00 00 00 00 00 00
{594245} normal block at 0x00B49008, 32 bytes long.
Data: <l G > 6C 0F 47 00 00 00 00 00 00 00 00 00 00 00 00 00
I am sorry that It may be difficult for you to find out what
resulted in this,but can you give me some suggestion?
2.Sometimes esapcically after I restart teh server,when I start
my server and use VLC to play th stream,the server receives the
"DECRIBE"、"SETUP" and "PLAY"command ok, but VLC just doesn't play the
stream and it tears down a few seconds later.I don't know the reason.I
use openRTSP and try to save the stream into a file.Things are the
same.The connection between the RTSP server and openRTSP is ok,but
openRTSP can't receive any data,so the file is empty. Then I restart
the server for one or more times,everything goes all right.
I rarely run into this problem with testprogs or
OnDemandRTSPServer.Therefore,there must be some reason that I have not
found in my program.Would you please help me?
Thanks in advance.
Richy
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100128/f39631a6/attachment-0001.html>
More information about the live-devel
mailing list