projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4bc1e3
)
camerabin: don't leak viewfinder-caps
author
Stefan Kost
<ensonic@users.sf.net>
Fri, 26 Jun 2009 15:30:01 +0000
(18:30 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 26 Jun 2009 15:36:25 +0000
(18:36 +0300)
gst/camerabin/gstcamerabin.c
patch
|
blob
|
history
diff --git
a/gst/camerabin/gstcamerabin.c
b/gst/camerabin/gstcamerabin.c
index
3f87987
..
da5e949
100644
(file)
--- 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);