mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapidecode: Use the GstVideoDecoder error reporting function
This way, the decoder won't stop on the first decoding error, in most cases it can recover after some glitchiness. https://bugzilla.gnome.org/show_bug.cgi?id=744620
This commit is contained in:
parent
bd86647970
commit
7e08786e1d
1 changed files with 5 additions and 6 deletions
|
@ -347,9 +347,9 @@ gst_vaapidecode_push_all_decoded_frames (GstVaapiDecode * decode)
|
|||
case GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA:
|
||||
return GST_FLOW_OK;
|
||||
default:
|
||||
GST_ELEMENT_ERROR (vdec, STREAM, DECODE, ("Decoding failed"),
|
||||
("Unknown decoding error"));
|
||||
return GST_FLOW_ERROR;
|
||||
GST_VIDEO_DECODER_ERROR (vdec, 1, STREAM, DECODE, ("Decoding failed"),
|
||||
("Unknown decoding error"), ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
g_assert_not_reached ();
|
||||
|
@ -429,9 +429,8 @@ error_decode:
|
|||
ret = GST_FLOW_NOT_SUPPORTED;
|
||||
break;
|
||||
default:
|
||||
GST_ELEMENT_ERROR (vdec, STREAM, DECODE, ("Decoding error"),
|
||||
("Decode error %d", status));
|
||||
ret = GST_FLOW_ERROR;
|
||||
GST_VIDEO_DECODER_ERROR (vdec, 1, STREAM, DECODE, ("Decoding error"),
|
||||
("Decode error %d", status), ret);
|
||||
break;
|
||||
}
|
||||
gst_video_decoder_drop_frame (vdec, frame);
|
||||
|
|
Loading…
Reference in a new issue