mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue