summaryrefslogtreecommitdiff
path: root/gst/videocrop
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2009-01-29 14:08:56 +0100
committerThijs Vermeir <thijsvermeir@gmail.com>2009-01-29 14:08:56 +0100
commit1c3fb9925274a4b48b6173b054d7cf1511302ea5 (patch)
treec3f8b25a3a4c54b2c873f6db497b7518cd27caa4 /gst/videocrop
parent8e462968cfa794349728a2b6604c0fcc8dd01ca3 (diff)
Only unref the peer when there is one.
Diffstat (limited to 'gst/videocrop')
-rw-r--r--gst/videocrop/gstaspectratiocrop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videocrop/gstaspectratiocrop.c b/gst/videocrop/gstaspectratiocrop.c
index cd59323ad..6d0ee44bc 100644
--- a/gst/videocrop/gstaspectratiocrop.c
+++ b/gst/videocrop/gstaspectratiocrop.c
@@ -392,10 +392,10 @@ gst_aspect_ratio_crop_get_caps (GstPad * pad)
return_caps =
gst_aspect_ratio_crop_transform_caps (aspect_ratio_crop, peer_caps);
gst_caps_unref (peer_caps);
+ gst_object_unref (peer);
}
g_mutex_unlock (aspect_ratio_crop->crop_lock);
- gst_object_unref (peer);
gst_object_unref (aspect_ratio_crop);
return return_caps;