mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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 https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1051
This commit is contained in:
parent
38c55de132
commit
c05acf40a8
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue