projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1215849
)
autodetect: Use gst_bin_set_suppressed_flags() API
author
Wonchul Lee
<wonchul.lee@collabora.com>
Wed, 14 Sep 2016 01:17:02 +0000
(10:17 +0900)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 14 Sep 2016 09:24:08 +0000
(11:24 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=771395
gst/autodetect/gstautodetect.c
patch
|
blob
|
history
diff --git
a/gst/autodetect/gstautodetect.c
b/gst/autodetect/gstautodetect.c
index
59aab7e
..
a256e52
100644
(file)
--- 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