Skip to content
Snippets Groups Projects
Commit c05acf40 authored by Haihao Xiang's avatar Haihao Xiang Committed by Víctor Manuel Jáquez Leal
Browse files

msdkdec: set pointer to NULL to avoid freeing an used surface

The surface should be cached in the surface list when GST_FLOW_OK is
going to be returned

This fixes #1051
parent 38c55de1
No related branches found
No related tags found
Loading
......@@ -1067,6 +1067,7 @@ gst_msdkdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
if (bitstream.DataLength == 0) {
flow = GST_FLOW_OK;
surface = NULL;
break;
}
} else if (status == MFX_ERR_MORE_DATA) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment