From 8a99589d2caee181b4186bc67a38dbf34062348d Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Fri, 12 Jan 2024 12:51:27 +0000 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c b/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c index d5351b839a..091207d957 100644 --- a/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c +++ b/subprojects/gst-plugins-good/ext/vpx/gstvpxdec.c @@ -725,7 +725,7 @@ gst_vpx_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame) if (status) { 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); 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 (vpxclass->get_frame_format (dec, img, &fmt) == FALSE) { vpx_img_free (img); - GST_ELEMENT_ERROR (decoder, LIBRARY, ENCODE, + GST_ELEMENT_ERROR (decoder, STREAM, DECODE, ("Failed to decode frame"), ("Unsupported color format %d", img->fmt)); gst_video_codec_frame_unref (frame);