<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE type=text/css>
BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 9.00.8112.16599"></HEAD>
<BODY
style="LINE-HEIGHT: 1.5; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; FONT-FAMILY: 微软雅黑; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; FONT-SIZE: 10.5pt; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>Hello, dear friend:</DIV>
<DIV style="TEXT-INDENT: 2em">when I usr tests my hls process, the first time
request the stream , faild, and the request the stream again, at the second time
of request when the DynamicRTSPServer::lookupServerMediaSession to deal
removeServerMediaSession process,:</DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV style="MARGIN-RIGHT: 0px" dir=ltr><STRONG> if (smsExists &&
isFirstLookupInSession)<BR> { <BR> // Remove the
existing "ServerMediaSession" and create a new one, in case the
underlying<BR> // file has changed in some
way:<BR> removeServerMediaSession(sms);
<BR> sms = NULL;<BR> } </STRONG></DIV></BLOCKQUOTE>
<DIV style="TEXT-INDENT: 2em">gets a segment fault error, I follow the running
process, it failed at the step of Medium::close:</DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV><STRONG>void RTSPServer::removeServerMediaSession(ServerMediaSession*
serverMediaSession) {<BR> if (serverMediaSession == NULL)
return;<BR> <BR>
fServerMediaSessions->Remove(serverMediaSession->streamName());<BR>
if (serverMediaSession->referenceCount() == 0) {<BR> <SPAN
style="FONT-SIZE: 14pt">
printf("Medium::close(serverMediaSession);\n");<BR></SPAN>
Medium::close(serverMediaSession);<BR> } else {<BR>
serverMediaSession->deleteWhenUnreferenced() = True;<BR>
}<BR> printf("out removeServerMediaSession(ServerMediaSession*
serverMediaSession)\n");<BR>}</STRONG></DIV></BLOCKQUOTE>
<DIV dir=ltr>the attachment is the http message, before the segment fault, it
output the message <SPAN style="FONT-SIZE: 10.5pt">"<FONT size=5><SPAN
style="FONT-SIZE: 10.5pt">Medium::close(serverMediaSession);</SPAN></FONT>",
what may cause the problem, can you help me?</SPAN></DIV></BLOCKQUOTE>
<DIV> </DIV>
<DIV style="FONT-FAMILY: Verdana; COLOR: #c0c0c0; FONT-SIZE: 10pt">
<DIV align=left>2014-12-20</DIV>
<HR
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 122px; HEIGHT: 1px; BORDER-TOP: #c0c0c0 1px solid; BORDER-RIGHT: 0px"
id=SignNameHR align=left>
<SPAN id=_FlashSignName>u8818test</SPAN> </DIV></STATIONERY></BODY></HTML>