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:
Ognyan Tonchev 2013-04-22 16:19:35 +02:00 committed by Wim Taymans
parent 6081f91351
commit 0bdff0161c

View file

@ -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;