From 186d317a2faca0dc23aa5a1be96609bcd766b3a6 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 3 Feb 2011 15:22:51 -0300 Subject: [PATCH] imagecapturebin: Fix property setting Set the property on the child and not on itself causing infinite looping --- gst/camerabin2/gstimagecapturebin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/camerabin2/gstimagecapturebin.c b/gst/camerabin2/gstimagecapturebin.c index 2a5bcdb..b4aba2a 100644 --- a/gst/camerabin2/gstimagecapturebin.c +++ b/gst/camerabin2/gstimagecapturebin.c @@ -117,8 +117,9 @@ gst_image_capture_bin_set_property (GObject * object, guint prop_id, case PROP_LOCATION: g_free (imagebin->location); imagebin->location = g_value_dup_string (value); + GST_DEBUG_OBJECT (imagebin, "setting location to %s", imagebin->location); if (imagebin->sink) { - g_object_set (imagebin, "location", imagebin->location, NULL); + g_object_set (imagebin->sink, "location", imagebin->location, NULL); } break; case PROP_ENCODER: -- 2.7.4