<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; position: static; z-index: auto; "><div><span class="Apple-tab-span" style="white-space:pre">       </span>I am using live555 media server. I am trying to remove media by calling RTSPServer::removeServerMediaSession(session); </div></div></div></blockquote><div><br></div>The code for "LIVE555 Media Server" application is not intended to be modified (especially by casual hobbyists).  (Note that the "LIVE555 Media Server" will remove "ServerMediaSession" objects automatically if you remove its underlying file, so you shouldn't need to modify the server's code to do this.)</div><div><br></div><div>Instead, you should develop your own server application (perhaps using the "testOnDemandRTSPServer" demo application).</div><div><br></div><div><br><blockquote type="cite"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; position: static; z-index: auto; "><div>This media is created by calling RTSPServer::addServerMediaSession(session); The problem is live555 server will complain "BasicTaskScheduler::SingleStep(): select() fails: Bad file descriptor" then abort immediately. </div></div></div></blockquote><div><br></div></div>Sorry, but I can't explain this (and because you have modified the code, I can't help you here).<br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>