diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2011-02-03 15:22:51 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2011-02-03 19:10:07 -0300 |
commit | 186d317a2faca0dc23aa5a1be96609bcd766b3a6 (patch) | |
tree | c83938293abd7c285b9417dd012b3d12b1e37275 | |
parent | bb0cdda4870d46e525adcfa91abc95e62a85d2f4 (diff) |
imagecapturebin: Fix property setting
Set the property on the child and not on itself causing infinite
looping
-rw-r--r-- | gst/camerabin2/gstimagecapturebin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/camerabin2/gstimagecapturebin.c b/gst/camerabin2/gstimagecapturebin.c index 2a5bcdba8..b4aba2aa0 100644 --- a/gst/camerabin2/gstimagecapturebin.c +++ b/gst/camerabin2/gstimagecapturebin.c @@ -114,14 +114,15 @@ gst_image_capture_bin_set_property (GObject * object, guint prop_id, GstImageCaptureBin *imagebin = GST_IMAGE_CAPTURE_BIN_CAST (object); switch (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: gst_image_capture_bin_set_encoder (imagebin, g_value_get_object (value)); break; case PROP_MUXER: |