camerabin: Fix viewfiner-sink property for bins

Correctly iterate viewfinder-sink children when
it is a bin.

Fixes #623802
This commit is contained in:
Thiago Santos 2010-07-07 23:06:43 -03:00
parent c28613d8db
commit 44e3d29ec4

View file

@ -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",