imagecapturebin: Fix property setting
Set the property on the child and not on itself causing infinite looping
This commit is contained in:
parent
bb0cdda487
commit
186d317a2f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user