summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-09-15 18:19:35 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-09-15 18:20:30 +0200
commiteaae01688489094d132b7a54a08b2da8bf8bb733 (patch)
tree6bf530ab7b758470f9fd8741bd7779e7105daec2
parentcae9ec0ad8f66d16ab1bd4b4ef42f4a00bf36776 (diff)
rtspsrc: Use new bin suppressed flags API for managing the element flags
-rw-r--r--gst/rtsp/gstrtspsrc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 52fd7379d..189adc2ad 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -906,6 +906,8 @@ gst_rtspsrc_init (GstRTSPSrc * src)
src->state = GST_RTSP_STATE_INVALID;
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_FLAG_SOURCE);
+ gst_bin_set_suppressed_flags (GST_BIN (src),
+ GST_ELEMENT_FLAG_SOURCE | GST_ELEMENT_FLAG_SINK);
}
static void
@@ -3618,9 +3620,6 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
g_object_set (G_OBJECT (stream->fakesrc), "filltype", 3, "num-buffers", 5,
"sizetype", 2, "sizemax", 200, "silent", TRUE, NULL);
- /* we don't want to consider this a sink */
- GST_OBJECT_FLAG_UNSET (stream->udpsink[0], GST_ELEMENT_FLAG_SINK);
-
/* keep everything locked */
gst_element_set_locked_state (stream->udpsink[0], TRUE);
gst_element_set_locked_state (stream->fakesrc, TRUE);
@@ -3667,9 +3666,6 @@ gst_rtspsrc_stream_configure_udp_sinks (GstRTSPSrc * src,
g_object_unref (socket);
}
- /* we don't want to consider this a sink */
- GST_OBJECT_FLAG_UNSET (stream->udpsink[1], GST_ELEMENT_FLAG_SINK);
-
/* we keep this playing always */
gst_element_set_locked_state (stream->udpsink[1], TRUE);
gst_element_set_state (stream->udpsink[1], GST_STATE_PLAYING);