mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
aom: Fix leak in av1dec
AOM Decoder wasn't being destroyed in stop https://bugzilla.gnome.org/show_bug.cgi?id=791674
This commit is contained in:
parent
0900cbd0a2
commit
c89f6107cd
1 changed files with 5 additions and 0 deletions
|
@ -177,6 +177,11 @@ gst_av1_dec_stop (GstVideoDecoder * dec)
|
||||||
av1dec->input_state = NULL;
|
av1dec->input_state = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (av1dec->decoder_inited) {
|
||||||
|
aom_codec_destroy (&av1dec->decoder);
|
||||||
|
}
|
||||||
|
av1dec->decoder_inited = FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue