From aca4203c201da5c5cd4422e2211a96f5892f2f2a Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Wed, 14 Sep 2016 10:17:02 +0900 Subject: [PATCH] autodetect: Use gst_bin_set_suppressed_flags() API https://bugzilla.gnome.org/show_bug.cgi?id=771395 --- gst/autodetect/gstautodetect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/autodetect/gstautodetect.c b/gst/autodetect/gstautodetect.c index 59aab7e..a256e52 100644 --- a/gst/autodetect/gstautodetect.c +++ b/gst/autodetect/gstautodetect.c @@ -113,8 +113,6 @@ gst_auto_detect_clear_kid (GstAutoDetect * self) gst_element_set_state (self->kid, GST_STATE_NULL); gst_bin_remove (GST_BIN (self), self->kid); self->kid = NULL; - /* Don't lose the element type flag */ - GST_OBJECT_FLAG_SET (self, self->flag); } } @@ -204,6 +202,8 @@ gst_auto_detect_constructed (GObject * object) /* mark element type */ GST_OBJECT_FLAG_SET (self, self->flag); + gst_bin_set_suppressed_flags (GST_BIN (self), + GST_ELEMENT_FLAG_SOURCE | GST_ELEMENT_FLAG_SINK); } static gboolean -- 2.7.4