mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
vpxdec: Use appropriate domain and code for decoding errors
STREAM domain and DECODE error is commonly used in other decoders. ENCODE is for encoders. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5918>
This commit is contained in:
parent
8944d5326e
commit
36518d81e7
1 changed files with 2 additions and 2 deletions
|
@ -725,7 +725,7 @@ gst_vpx_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
||||||
if (status) {
|
if (status) {
|
||||||
GstVideoDecoderRequestSyncPointFlags flags = 0;
|
GstVideoDecoderRequestSyncPointFlags flags = 0;
|
||||||
|
|
||||||
GST_VIDEO_DECODER_ERROR (decoder, 1, LIBRARY, ENCODE,
|
GST_VIDEO_DECODER_ERROR (decoder, 1, STREAM, DECODE,
|
||||||
("Failed to decode frame"), ("%s", gst_vpx_error_name (status)), ret);
|
("Failed to decode frame"), ("%s", gst_vpx_error_name (status)), ret);
|
||||||
|
|
||||||
if (gst_video_decoder_get_needs_sync_point (decoder))
|
if (gst_video_decoder_get_needs_sync_point (decoder))
|
||||||
|
@ -740,7 +740,7 @@ gst_vpx_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
||||||
if (img) {
|
if (img) {
|
||||||
if (vpxclass->get_frame_format (dec, img, &fmt) == FALSE) {
|
if (vpxclass->get_frame_format (dec, img, &fmt) == FALSE) {
|
||||||
vpx_img_free (img);
|
vpx_img_free (img);
|
||||||
GST_ELEMENT_ERROR (decoder, LIBRARY, ENCODE,
|
GST_ELEMENT_ERROR (decoder, STREAM, DECODE,
|
||||||
("Failed to decode frame"), ("Unsupported color format %d",
|
("Failed to decode frame"), ("Unsupported color format %d",
|
||||||
img->fmt));
|
img->fmt));
|
||||||
gst_video_codec_frame_unref (frame);
|
gst_video_codec_frame_unref (frame);
|
||||||
|
|
Loading…
Reference in a new issue