mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-09 17:44:14 +00:00
Only unref the peer when there is one.
This commit is contained in:
parent
8e462968cf
commit
1c3fb99252
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue