mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 10:32:15 +00:00
Use teardownMediaSession() instead of teardownMediaSubsession()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22911 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cb644a4a9d
commit
0c3c6dd46e
@ -557,12 +557,7 @@ static void teardownRTSPorSIPSession(RTPState* rtpState) {
|
|||||||
MediaSession* mediaSession = rtpState->mediaSession;
|
MediaSession* mediaSession = rtpState->mediaSession;
|
||||||
if (mediaSession == NULL) return;
|
if (mediaSession == NULL) return;
|
||||||
if (rtpState->rtspClient != NULL) {
|
if (rtpState->rtspClient != NULL) {
|
||||||
MediaSubsessionIterator iter(*mediaSession);
|
rtpState->rtspClient->teardownMediaSession(*mediaSession);
|
||||||
MediaSubsession* subsession;
|
|
||||||
|
|
||||||
while ((subsession = iter.next()) != NULL) {
|
|
||||||
rtpState->rtspClient->teardownMediaSubsession(*subsession);
|
|
||||||
}
|
|
||||||
} else if (rtpState->sipClient != NULL) {
|
} else if (rtpState->sipClient != NULL) {
|
||||||
rtpState->sipClient->sendBYE();
|
rtpState->sipClient->sendBYE();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user