Commit aca4203c authored by Wonchul Lee's avatar Wonchul Lee Committed by Sebastian Dröge

autodetect: Use gst_bin_set_suppressed_flags() API

https://bugzilla.gnome.org/show_bug.cgi?id=771395
parent 1215849e
......@@ -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
......
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