summaryrefslogtreecommitdiff
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2011-02-03 18:22:51 (GMT)
committer Thiago Santos <thiago.sousa.santos@collabora.co.uk>2011-02-03 22:10:07 (GMT)
commit186d317a2faca0dc23aa5a1be96609bcd766b3a6 (patch) (side-by-side diff)
treec83938293abd7c285b9417dd012b3d12b1e37275
parentbb0cdda4870d46e525adcfa91abc95e62a85d2f4 (diff)
downloadgst-plugins-bad-186d317a2faca0dc23aa5a1be96609bcd766b3a6.zip
gst-plugins-bad-186d317a2faca0dc23aa5a1be96609bcd766b3a6.tar.gz
imagecapturebin: Fix property setting
Set the property on the child and not on itself causing infinite looping
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--gst/camerabin2/gstimagecapturebin.c3
1 files changed, 2 insertions, 1 deletions
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: