media: don't free streams array

Don't free the streams array in the unprepare() method, they were not
added in prepare().

See https://bugzilla.gnome.org/show_bug.cgi?id=698376
This commit is contained in:
Ognyan Tonchev 2013-04-22 16:25:17 +02:00 committed by Wim Taymans
parent 0bdff0161c
commit 9b31fcc7f8

View file

@ -1604,7 +1604,6 @@ finish_unprepare (GstRTSPMedia * media)
gst_rtsp_stream_leave_bin (stream, GST_BIN (priv->pipeline), priv->rtpbin);
}
g_ptr_array_set_size (priv->streams, 0);
gst_bin_remove (GST_BIN (priv->pipeline), priv->rtpbin);
priv->rtpbin = NULL;