mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
msdk: decoder: fatal failure if negotiations fails
Otherwise it crashes when no parser is used placed upstream, v.gr. gst-launch-1.0 filesrc location=file.264 ! msdkh264dec ! fakesink
This commit is contained in:
parent
f238066288
commit
5f67b4946e
1 changed files with 6 additions and 1 deletions
|
@ -933,7 +933,12 @@ gst_msdkdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
|||
if (thiz->initialized && thiz->do_renego)
|
||||
gst_video_codec_frame_ref (frame);
|
||||
|
||||
gst_msdkdec_negotiate (thiz, hard_reset);
|
||||
if (!gst_msdkdec_negotiate (thiz, hard_reset)) {
|
||||
GST_ELEMENT_ERROR (thiz, CORE, NEGOTIATION,
|
||||
("Could not negotiate the stream"), (NULL));
|
||||
flow = GST_FLOW_ERROR;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
|
|
Loading…
Reference in a new issue