diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2016-12-22 17:34:08 +0200 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2017-01-03 01:34:02 +1100 |
commit | 394be2c318338b73025caeab7d214a61ae0fb3d2 (patch) | |
tree | 8a573ff7a0df52484dd50bd60f2589159ff1fa81 /gst/multifile | |
parent | 335c9f28d6a58ff9ce2dec5b7f5db8fc3be41dd9 (diff) | |
download | gstreamer-plugins-good-394be2c318338b73025caeab7d214a61ae0fb3d2.tar.gz |
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.
Diffstat (limited to 'gst/multifile')
-rw-r--r-- | gst/multifile/gstsplitmuxsink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index 4b2f01042..1548624ae 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)) { |