diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-06-26 18:34:36 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-26 18:36:25 +0300 |
commit | 59bfe55110ddf7122eb032790109e0649185ccb4 (patch) | |
tree | 215a301e04e92654ac12f401047a366807fa28dc /gst/camerabin | |
parent | df14237dbaee72d6aa5a2c5caf969e011881d380 (diff) | |
download | gst-plugins-bad-59bfe55110ddf7122eb032790109e0649185ccb4.tar.gz gst-plugins-bad-59bfe55110ddf7122eb032790109e0649185ccb4.tar.bz2 gst-plugins-bad-59bfe55110ddf7122eb032790109e0649185ccb4.zip |
camerabin: just ref caps, we don't need a writable copy
Diffstat (limited to 'gst/camerabin')
-rw-r--r-- | gst/camerabin/gstcamerabin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 4b182f9f..5dca7fd8 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -2871,7 +2871,9 @@ gst_camerabin_set_property (GObject * object, guint prop_id, if (camera->view_finder_caps) { gst_caps_unref (camera->view_finder_caps); } - camera->view_finder_caps = gst_caps_copy (gst_value_get_caps (value)); + /* just ref, we don't modify it inplace */ + camera->view_finder_caps = + gst_caps_ref ((GstCaps *) gst_value_get_caps (value)); GST_OBJECT_UNLOCK (camera); if (GST_STATE (camera) != GST_STATE_NULL) { gst_camerabin_set_capsfilter_caps (camera, camera->view_finder_caps); |