projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
335c9f2
)
splitmuxsink: Return a bin with a "location" property as a sink
author
Vivia Nikolaidou
<vivia@ahiru.eu>
Thu, 22 Dec 2016 15:34:08 +0000
(17:34 +0200)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/gst/multifile/gstsplitmuxsink.c
b/gst/multifile/gstsplitmuxsink.c
index 4b2f01042bf7e9b3fd3135c09f8c3f72001c5b68..1548624ae0ea831ea578030140e74035a8019367 100644
(file)
--- 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)) {