Commit 70b08bdb authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Sebastian Dröge

proxy: Set SOURCE flag on the source and SINK flag on the sink

So that they are properly recognized as such.
parent 7820109b
......@@ -97,6 +97,8 @@ gst_proxy_sink_init (GstProxySink * self)
gst_pad_set_query_function (self->sinkpad,
GST_DEBUG_FUNCPTR (gst_proxy_sink_sink_query));
gst_element_add_pad (GST_ELEMENT (self), self->sinkpad);
GST_OBJECT_FLAG_SET (self, GST_ELEMENT_FLAG_SINK);
}
static GstStateChangeReturn
......
......@@ -226,6 +226,10 @@ gst_proxy_src_init (GstProxySrc * self)
sinkpad = gst_element_get_static_pad (self->queue, "sink");
gst_pad_link (self->internal_srcpad, sinkpad);
gst_object_unref (sinkpad);
gst_bin_set_suppressed_flags (GST_BIN (self),
GST_ELEMENT_FLAG_SOURCE | GST_ELEMENT_FLAG_SINK);
GST_OBJECT_FLAG_SET (self, GST_ELEMENT_FLAG_SOURCE);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment