mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
glvideoflip: fix leaked caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4394>
This commit is contained in:
parent
769cc48e49
commit
15b7c7ea25
1 changed files with 4 additions and 1 deletions
|
@ -345,10 +345,13 @@ _set_active_method (GstGLVideoFlip * vf, GstVideoOrientationMethod method,
|
|||
gst_caps_append (output_caps, gst_caps_ref (templ));
|
||||
GST_OBJECT_UNLOCK (vf);
|
||||
|
||||
g_object_set (vf->input_capsfilter, "caps", gst_caps_ref (caps), NULL);
|
||||
g_object_set (vf->input_capsfilter, "caps", caps, NULL);
|
||||
g_object_set (vf->output_capsfilter, "caps", output_caps, NULL);
|
||||
g_object_set (vf->transformation, "rotation-z", rot_z, "scale-x", scale_x,
|
||||
"scale-y", scale_y, NULL);
|
||||
|
||||
gst_caps_unref (output_caps);
|
||||
|
||||
GST_OBJECT_LOCK (vf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue