From 394be2c318338b73025caeab7d214a61ae0fb3d2 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 22 Dec 2016 17:34:08 +0200 Subject: [PATCH] splitmuxsink: Return a bin with a "location" property as a sink 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index 4b2f01042b..1548624ae0 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -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)) {