rtpbin: make free_session() remove stream references
authorStig Sandnes <stig.sandnes@tandberg.com>
Tue, 8 Sep 2009 11:18:29 +0000 (13:18 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 8 Sep 2009 11:18:29 +0000 (13:18 +0200)
commit8f3299c5474530d0a0b353160816d5b841b5d7cb
treec4c04a8d22302c193cf0ef25466a02c17cfec667
parente08e610db0d5e9f7e4d5d5c42b026b2853b1321d
rtpbin: make free_session() remove stream references

When receiving a sync-packet, all sessions with the same cname will be compared
and synced together. In this process, there could still be references to a
session that has been shut down in the meanwhile.

This patch makes sure that these references are removed when shutting down a
session, so that the syncing can be done safely.

Fixes #594283
gst/rtpmanager/gstrtpbin.c