media: let the source unref the last media ref
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 30 Nov 2012 12:35:05 +0000 (13:35 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 30 Nov 2012 12:35:05 +0000 (13:35 +0100)
commit119674a828d7ce1655647e63f5ddfbde40ca4ad4
tree6b3ff864a34558b0f8fd73643ce500458a5c6140
parent339ea9b085ea37de216d8ff31d908753963b8ab1
media: let the source unref the last media ref

the last ref to the media is held by the source so we don't need to add more ref
and unrefs, we simply destroy the media when the source is gone.
gst/rtsp-server/rtsp-media.c