mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
proxy: Set SOURCE flag on the source and SINK flag on the sink
So that they are properly recognized as such.
This commit is contained in:
parent
7820109b88
commit
70b08bdbfa
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue