mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
camerabin: Do not leak a caps
gst_caps_replace doesn't take ownership, but refs the caps. So we unref the remaining caps.
This commit is contained in:
parent
618f32ad8d
commit
5a5fca2689
1 changed files with 2 additions and 0 deletions
|
@ -4054,6 +4054,8 @@ gst_camerabin_set_image_capture_caps (GstCameraBin * camera, gint width,
|
|||
"init filter caps for image capture %" GST_PTR_FORMAT, new_caps);
|
||||
gst_caps_replace (&camera->image_capture_caps, new_caps);
|
||||
camera->image_capture_caps_update = FALSE;
|
||||
if (new_caps)
|
||||
gst_caps_unref (new_caps);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue