media: media has to be unprepared in finalize

Because unprepare takes away the last ref on the media.
This commit is contained in:
Wim Taymans 2012-11-30 14:58:46 +01:00
parent 38addd7822
commit ca26588c7e

View file

@ -218,8 +218,6 @@ gst_rtsp_media_finalize (GObject * obj)
GST_INFO ("finalize media %p", media); GST_INFO ("finalize media %p", media);
gst_rtsp_media_unprepare (media);
g_ptr_array_unref (priv->streams); g_ptr_array_unref (priv->streams);
g_list_free_full (priv->dynamic, gst_object_unref); g_list_free_full (priv->dynamic, gst_object_unref);