diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-06-26 18:33:47 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-06-26 18:36:25 +0300 |
commit | df14237dbaee72d6aa5a2c5caf969e011881d380 (patch) | |
tree | 3f1dda747a7e2f85960c6b6e0f8dfc00c681e538 /gst/camerabin | |
parent | c9208657b11669f1820feed4c177ca24366182be (diff) | |
download | gst-plugins-bad-df14237dbaee72d6aa5a2c5caf969e011881d380.tar.gz gst-plugins-bad-df14237dbaee72d6aa5a2c5caf969e011881d380.tar.bz2 gst-plugins-bad-df14237dbaee72d6aa5a2c5caf969e011881d380.zip |
camerabin: no need to ref and unref this temporarily
Diffstat (limited to 'gst/camerabin')
-rw-r--r-- | gst/camerabin/gstcamerabin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/camerabin/gstcamerabin.c b/gst/camerabin/gstcamerabin.c index 3f084b8c..4b182f9f 100644 --- a/gst/camerabin/gstcamerabin.c +++ b/gst/camerabin/gstcamerabin.c @@ -2261,13 +2261,14 @@ gst_camerabin_update_aspect_filter (GstCameraBin * camera, GstCaps * new_caps) G_TYPE_INT, target_h, NULL); } else { GST_DEBUG_OBJECT (camera, "no scaling"); - ar_caps = gst_caps_ref (new_caps); + ar_caps = new_caps; } GST_DEBUG_OBJECT (camera, "aspect ratio filter caps %" GST_PTR_FORMAT, ar_caps); g_object_set (G_OBJECT (camera->aspect_filter), "caps", ar_caps, NULL); - gst_caps_unref (ar_caps); + if (ar_caps != new_caps) + gst_caps_unref (ar_caps); #endif } |