Merge pull request #573 from manupap1/rtsp_fix
Fix a bug when closing RTSP session over TCPpull/575/head^2
commit
f120546f9e
|
@ -768,11 +768,10 @@ int RtspThread::run()
|
|||
if ( !recvResponse( response ) )
|
||||
return( -1 );
|
||||
#endif
|
||||
// Send a teardown message but don't expect a response as this may not be implemented on the server when using TCP
|
||||
message = "TEARDOWN "+mUrl+" RTSP/1.0\r\nSession: "+session+"\r\n";
|
||||
if ( !sendCommand( message ) )
|
||||
return( -1 );
|
||||
if ( !recvResponse( response ) )
|
||||
return( -1 );
|
||||
|
||||
delete mSources[ssrc];
|
||||
mSources.clear();
|
||||
|
|
Loading…
Reference in New Issue