summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2011-02-03 15:22:51 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2011-02-03 19:10:07 -0300
commit186d317a2faca0dc23aa5a1be96609bcd766b3a6 (patch)
treec83938293abd7c285b9417dd012b3d12b1e37275
parentbb0cdda4870d46e525adcfa91abc95e62a85d2f4 (diff)
imagecapturebin: Fix property setting
Set the property on the child and not on itself causing infinite looping
-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 2a5bcdba8..b4aba2aa0 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,
117 case PROP_LOCATION: 117 case PROP_LOCATION:
118 g_free (imagebin->location); 118 g_free (imagebin->location);
119 imagebin->location = g_value_dup_string (value); 119 imagebin->location = g_value_dup_string (value);
120 GST_DEBUG_OBJECT (imagebin, "setting location to %s", imagebin->location);
120 if (imagebin->sink) { 121 if (imagebin->sink) {
121 g_object_set (imagebin, "location", imagebin->location, NULL); 122 g_object_set (imagebin->sink, "location", imagebin->location, NULL);
122 } 123 }
123 break; 124 break;
124 case PROP_ENCODER: 125 case PROP_ENCODER: