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/5916>
This commit is contained in:
Philippe Normand 2024-01-12 12:51:27 +00:00 committed by GStreamer Marge Bot
parent b75b17cf73
commit 8a99589d2c

View file

@ -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);