decklinksrc: Set GST_ELEMENT_FLAG_SOURCE on the source

As it does not inherit from basesrc, this flag is not automatically set
and e.g. gst_bin_iterate_sources() and other code does not consider this
element a source.

https://bugzilla.gnome.org/show_bug.cgi?id=680700
This commit is contained in:
Sebastian Dröge 2013-12-14 18:42:11 +01:00
parent 91787ce4f0
commit 234f3c73dc

View file

@ -176,6 +176,7 @@ gst_decklink_src_init (GstDecklinkSrc * decklinksrc)
GST_DEBUG_FUNCPTR (gst_decklink_src_video_src_query));
gst_element_add_pad (GST_ELEMENT (decklinksrc), decklinksrc->videosrcpad);
GST_OBJECT_FLAG_SET (decklinksrc, GST_ELEMENT_FLAG_SOURCE);
g_cond_init (&decklinksrc->cond);
g_mutex_init (&decklinksrc->mutex);