mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
libs: postproc: fix a memory leak point.
filter_ops and filter_formats should already have valid value when the function gst_vaapipostproc_ensure_filter_caps re-enter
This commit is contained in:
parent
51963b1a74
commit
70cefdd272
1 changed files with 10 additions and 6 deletions
|
@ -246,13 +246,17 @@ gst_vaapipostproc_ensure_filter_caps (GstVaapiPostproc * postproc)
|
|||
if (!gst_vaapipostproc_ensure_filter (postproc))
|
||||
return FALSE;
|
||||
|
||||
postproc->filter_ops = gst_vaapi_filter_get_operations (postproc->filter);
|
||||
if (!postproc->filter_ops)
|
||||
return FALSE;
|
||||
if (!postproc->filter_ops) {
|
||||
postproc->filter_ops = gst_vaapi_filter_get_operations (postproc->filter);
|
||||
if (!postproc->filter_ops)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
postproc->filter_formats = gst_vaapi_filter_get_formats (postproc->filter);
|
||||
if (!postproc->filter_formats)
|
||||
return FALSE;
|
||||
if (!postproc->filter_formats) {
|
||||
postproc->filter_formats = gst_vaapi_filter_get_formats (postproc->filter);
|
||||
if (!postproc->filter_formats)
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue