mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
vaapidecode: Fix videocodec state memory leak
When state is not NULL and either width/height of video info is 0, then state leaks https://bugzilla.gnome.org/show_bug.cgi?id=762173
This commit is contained in:
parent
38fbe58999
commit
ac01304cec
1 changed files with 2 additions and 0 deletions
|
@ -254,6 +254,8 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
|
|||
if (!state || state->info.width == 0 || state->info.height == 0) {
|
||||
if (features)
|
||||
gst_caps_features_free (features);
|
||||
if (state)
|
||||
gst_video_codec_state_unref (state);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue