mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-15 10:48:16 +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
|
@ -1025,8 +1025,11 @@ gst_msdkdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (status == MFX_ERR_MORE_DATA) {
|
} else if (status == MFX_ERR_MORE_DATA) {
|
||||||
task->decode_only = TRUE;
|
if (task->surface) {
|
||||||
thiz->next_task = (thiz->next_task + 1) % thiz->tasks->len;
|
task->decode_only = TRUE;
|
||||||
|
thiz->next_task = (thiz->next_task + 1) % thiz->tasks->len;
|
||||||
|
}
|
||||||
|
|
||||||
if (surface->surface->Data.Locked > 0)
|
if (surface->surface->Data.Locked > 0)
|
||||||
surface = NULL;
|
surface = NULL;
|
||||||
flow = GST_VIDEO_DECODER_FLOW_NEED_DATA;
|
flow = GST_VIDEO_DECODER_FLOW_NEED_DATA;
|
||||||
|
|
Loading…
Reference in a new issue