mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
vaapidecode: Fix capsfeature memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=762116
This commit is contained in:
parent
b54ac96c27
commit
26abec3e26
1 changed files with 4 additions and 1 deletions
|
@ -251,8 +251,11 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
|
|||
|
||||
state = gst_video_decoder_set_output_state (vdec, format,
|
||||
ref_state->info.width, ref_state->info.height, ref_state);
|
||||
if (!state || state->info.width == 0 || state->info.height == 0)
|
||||
if (!state || state->info.width == 0 || state->info.height == 0) {
|
||||
if (features)
|
||||
gst_caps_features_free (features);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
vi = &state->info;
|
||||
|
||||
|
|
Loading…
Reference in a new issue