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.
This commit is contained in:
Vivia Nikolaidou 2016-12-22 17:34:08 +02:00 committed by Jan Schmidt
parent 335c9f28d6
commit 394be2c318

View file

@ -1818,6 +1818,9 @@ find_sink (GstElement * e)
if (!GST_IS_BIN (e)) if (!GST_IS_BIN (e))
return 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)); iter = gst_bin_iterate_sinks (GST_BIN (e));
while (!done) { while (!done) {
switch (gst_iterator_next (iter, &data)) { switch (gst_iterator_next (iter, &data)) {