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
@ -177,6 +177,11 @@ gst_av1_dec_stop (GstVideoDecoder * dec)
|
||||
av1dec->input_state = NULL;
|
||||
}
|
||||
|
||||
if (av1dec->decoder_inited) {
|
||||
aom_codec_destroy (&av1dec->decoder);
|
||||
}
|
||||
av1dec->decoder_inited = FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user