1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +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:
cehoyos 2007-04-03 17:00:27 +00:00
parent cb644a4a9d
commit 0c3c6dd46e

View File

@ -557,12 +557,7 @@ static void teardownRTSPorSIPSession(RTPState* rtpState) {
MediaSession* mediaSession = rtpState->mediaSession;
if (mediaSession == NULL) return;
if (rtpState->rtspClient != NULL) {
MediaSubsessionIterator iter(*mediaSession);
MediaSubsession* subsession;
while ((subsession = iter.next()) != NULL) {
rtpState->rtspClient->teardownMediaSubsession(*subsession);
}
rtpState->rtspClient->teardownMediaSession(*mediaSession);
} else if (rtpState->sipClient != NULL) {
rtpState->sipClient->sendBYE();
}