From: Nicolas Dufresne Date: Sat, 8 Aug 2015 13:08:37 +0000 (-0400) Subject: Revert "rtsp-media: Only add 1 fakesink per pipeline" X-Git-Tag: 1.6.0~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=160b87430f876132199fd105a7de4fc08fa215ad;p=platform%2Fupstream%2Fgst-rtsp-server.git Revert "rtsp-media: Only add 1 fakesink per pipeline" This reverts commit 22bf61f16c1210bb458fc3f53642179a0211104f. --- diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index c00c703..011dae3 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -2516,12 +2516,12 @@ start_prepare (GstRTSPMedia * media) (GCallback) no_more_pads_cb, media); g_object_set_data (G_OBJECT (elem), "gst-rtsp-dynpay-handlers", handlers); - } - /* we add a fakesink here in order to make the state change async. We remove - * the fakesink again in the no-more-pads callback. */ - priv->fakesink = gst_element_factory_make ("fakesink", "fakesink"); - gst_bin_add (GST_BIN (priv->pipeline), priv->fakesink); + /* we add a fakesink here in order to make the state change async. We remove + * the fakesink again in the no-more-pads callback. */ + priv->fakesink = gst_element_factory_make ("fakesink", "fakesink"); + gst_bin_add (GST_BIN (priv->pipeline), priv->fakesink); + } if (!start_preroll (media)) goto preroll_failed;