mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
335c9f28d6
commit
394be2c318
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue