media: don't free streams array
authorOgnyan Tonchev <ognyan@axis.com>
Mon, 22 Apr 2013 14:25:17 +0000 (16:25 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 22 Apr 2013 14:25:17 +0000 (16:25 +0200)
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

gst/rtsp-server/rtsp-media.c

index e30bc0e..e81aa12 100644 (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;