mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
client: never call gst_rtsp_media_unprepare, let gst_rtsp_media_finalize do it
Calling gst_rtsp_media_unprepare breaks shared medias. Just unref GstRTSPMedia instances and let gst_rtsp_media_finalize unprepare when a media isn't being used anymore.
This commit is contained in:
parent
00d9a94e1a
commit
ba5b78ff2f
1 changed files with 0 additions and 2 deletions
|
@ -278,7 +278,6 @@ gst_rtsp_client_finalize (GObject * obj)
|
|||
if (priv->uri)
|
||||
gst_rtsp_url_free (priv->uri);
|
||||
if (priv->media) {
|
||||
gst_rtsp_media_unprepare (priv->media);
|
||||
g_object_unref (priv->media);
|
||||
}
|
||||
|
||||
|
@ -436,7 +435,6 @@ find_media (GstRTSPClient * client, GstRTSPClientState * state)
|
|||
gst_rtsp_url_free (priv->uri);
|
||||
priv->uri = NULL;
|
||||
if (priv->media) {
|
||||
gst_rtsp_media_unprepare (priv->media);
|
||||
g_object_unref (priv->media);
|
||||
}
|
||||
priv->media = NULL;
|
||||
|
|
Loading…
Reference in a new issue