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:
Sean DuBois 2017-12-31 07:47:47 +00:00 committed by Sebastian Dröge
parent 0900cbd0a2
commit c89f6107cd

View file

@ -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;
} }