splitmuxsink: Return a bin with a "location" property as a sink
authorVivia Nikolaidou <vivia@ahiru.eu>
Thu, 22 Dec 2016 15:34:08 +0000 (17:34 +0200)
committerJan Schmidt <jan@centricular.com>
Mon, 2 Jan 2017 14:34:02 +0000 (01:34 +1100)
Splitmuxsink might be called with a custom bin as a sink. If it has a
"location" property, it can be used.

gst/multifile/gstsplitmuxsink.c

index 4b2f010..1548624 100644 (file)
@@ -1818,6 +1818,9 @@ find_sink (GstElement * e)
   if (!GST_IS_BIN (e))
     return e;
 
+  if (g_object_class_find_property (G_OBJECT_GET_CLASS (e), "location") != NULL)
+    return e;
+
   iter = gst_bin_iterate_sinks (GST_BIN (e));
   while (!done) {
     switch (gst_iterator_next (iter, &data)) {