diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-06-26 18:30:01 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-26 18:36:25 +0300 |
commit | 9a692cf602c55556601f7e302a6907c0d977182a (patch) | |
tree | b84a2028191cce12babc7c8d07ddfb3980c7e26b /gst/camerabin | |
parent | e4bc1e31ef85c71e1d8b1ca8bf4db9c74b066a07 (diff) |
camerabin: don't leak viewfinder-caps
Diffstat (limited to 'gst/camerabin')
-rw-r--r-- | gst/camerabin/gstcamerabin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 3f8798768..da5e949ee 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -531,7 +531,9 @@ camerabin_setup_src_elements (GstCameraBin * camera) g_object_set (camera->src_zoom_scale, "method", CAMERABIN_DEFAULT_ZOOM_METHOD, NULL); + /* we create new caps in any way and they take ownership of the structure st */ gst_caps_replace (&camera->view_finder_caps, new_caps); + gst_caps_unref (new_caps); /* Set caps for view finder mode */ gst_camerabin_set_capsfilter_caps (camera, camera->view_finder_caps); |