changeset 22893:777031848801

Use teardownMediaSession() instead of teardownMediaSubsession()
author cehoyos
date Tue, 03 Apr 2007 17:00:27 +0000
parents eb4d06df462f
children 8912a629ebb1
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Tue Apr 03 16:22:19 2007 +0000
+++ b/libmpdemux/demux_rtp.cpp	Tue Apr 03 17:00:27 2007 +0000
@@ -557,12 +557,7 @@
   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();
   }