From 234f3c73dc4ded22de9e5650865c45c5be4a0873 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 14 Dec 2013 18:42:11 +0100 Subject: [PATCH] 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 --- sys/decklink/gstdecklinksrc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/decklink/gstdecklinksrc.cpp b/sys/decklink/gstdecklinksrc.cpp index 1501a06..6e9e640 100644 --- a/sys/decklink/gstdecklinksrc.cpp +++ b/sys/decklink/gstdecklinksrc.cpp @@ -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); -- 2.7.4