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:
Lasse Laukkanen 2010-11-02 09:38:20 -03:00 committed by Thiago Santos
parent 618f32ad8d
commit 5a5fca2689

View file

@ -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