mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
msdkdec: set decode_only for output only
MSDK may return MFX_ERR_MORE_DATA but without output surface Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/887
This commit is contained in:
parent
5f2f289b7e
commit
028338ff44
1 changed files with 5 additions and 2 deletions
|
@ -1025,8 +1025,11 @@ gst_msdkdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
|||
break;
|
||||
}
|
||||
} else if (status == MFX_ERR_MORE_DATA) {
|
||||
if (task->surface) {
|
||||
task->decode_only = TRUE;
|
||||
thiz->next_task = (thiz->next_task + 1) % thiz->tasks->len;
|
||||
}
|
||||
|
||||
if (surface->surface->Data.Locked > 0)
|
||||
surface = NULL;
|
||||
flow = GST_VIDEO_DECODER_FLOW_NEED_DATA;
|
||||
|
|
Loading…
Reference in a new issue