mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
vtdec: fix leak of CMFormatDescription
There was consideration for replacing the CMFormatDescription used on format changes in `set_format()` however on shutdown, we were leaking the CMFormatDescription at the end of processing. 'https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1106'
This commit is contained in:
parent
732735cab0
commit
f84ebbd95f
1 changed files with 4 additions and 0 deletions
|
@ -205,6 +205,10 @@ gst_vtdec_stop (GstVideoDecoder * decoder)
|
|||
gst_gl_context_helper_free (vtdec->ctxh);
|
||||
vtdec->ctxh = NULL;
|
||||
|
||||
if (vtdec->format_description)
|
||||
CFRelease (vtdec->format_description);
|
||||
vtdec->format_description = NULL;
|
||||
|
||||
GST_DEBUG_OBJECT (vtdec, "stop");
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue