mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
media: don't unref the pipeline in unprepare
Unprepare() should undo what prepare() does. Because the pipeline is not created in prepare(), we should not unref it in unprepare()
This commit is contained in:
parent
6081f91351
commit
0bdff0161c
1 changed files with 3 additions and 5 deletions
|
@ -1410,8 +1410,9 @@ no_more_pads_cb (GstElement * element, GstRTSPMedia * media)
|
|||
* gst_rtsp_media_prepare:
|
||||
* @media: a #GstRTSPMedia
|
||||
*
|
||||
* Prepare @media for streaming. This function will create the pipeline and
|
||||
* other objects to manage the streaming.
|
||||
* Prepare @media for streaming. This function will create the objects
|
||||
* to manage the streaming. A pipeline must have been set on @media with
|
||||
* gst_rtsp_media_take_pipeline().
|
||||
*
|
||||
* It will preroll the pipeline and collect vital information about the streams
|
||||
* such as the duration.
|
||||
|
@ -1612,9 +1613,6 @@ finish_unprepare (GstRTSPMedia * media)
|
|||
gst_object_unref (priv->nettime);
|
||||
priv->nettime = NULL;
|
||||
|
||||
gst_object_unref (priv->pipeline);
|
||||
priv->pipeline = NULL;
|
||||
|
||||
priv->reused = TRUE;
|
||||
priv->status = GST_RTSP_MEDIA_STATUS_UNPREPARED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue