mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
camerabin: Fix viewfiner-sink property for bins
Correctly iterate viewfinder-sink children when it is a bin. Fixes #623802
This commit is contained in:
parent
c28613d8db
commit
44e3d29ec4
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ camerabin_setup_view_elements (GstCameraBin * camera)
|
||||||
/* Find the actual sink if using bin like autovideosink */
|
/* Find the actual sink if using bin like autovideosink */
|
||||||
if (GST_IS_BIN (camera->view_sink)) {
|
if (GST_IS_BIN (camera->view_sink)) {
|
||||||
GList *child = NULL, *children = GST_BIN_CHILDREN (camera->view_sink);
|
GList *child = NULL, *children = GST_BIN_CHILDREN (camera->view_sink);
|
||||||
for (child = children; child != NULL; child = g_list_next (children)) {
|
for (child = children; child != NULL; child = g_list_next (child)) {
|
||||||
GObject *ch = G_OBJECT (child->data);
|
GObject *ch = G_OBJECT (child->data);
|
||||||
if (g_object_class_find_property (G_OBJECT_GET_CLASS (ch), "sync")) {
|
if (g_object_class_find_property (G_OBJECT_GET_CLASS (ch), "sync")) {
|
||||||
g_object_set (G_OBJECT (ch), "sync", FALSE, "qos", FALSE, "async",
|
g_object_set (G_OBJECT (ch), "sync", FALSE, "qos", FALSE, "async",
|
||||||
|
|
Loading…
Reference in a new issue