From 3d335cb1ed23b5a35c22277d29575a929ef942ad Mon Sep 17 00:00:00 2001 From: Tom Greenwood Date: Wed, 3 Apr 2013 23:52:47 +0100 Subject: [PATCH] vp8dec: Improve logging when vpx_codec_peek_stream_info fails Decode failures and missing keyframes should get different debug output. https://bugzilla.gnome.org/show_bug.cgi?id=697232 --- ext/vpx/gstvp8dec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ext/vpx/gstvp8dec.c b/ext/vpx/gstvp8dec.c index ea979c8..6e96efa 100644 --- a/ext/vpx/gstvp8dec.c +++ b/ext/vpx/gstvp8dec.c @@ -415,7 +415,13 @@ open_codec (GstVP8Dec * dec, GstVideoCodecFrame * frame) gst_buffer_unmap (frame->input_buffer, &minfo); - if (status != VPX_CODEC_OK || !stream_info.is_kf) { + if (status != VPX_CODEC_OK) { + GST_WARNING_OBJECT (dec, "VPX preprocessing error: %s", + gst_vpx_error_name (status)); + gst_video_decoder_finish_frame (GST_VIDEO_DECODER (dec), frame); + return GST_FLOW_CUSTOM_SUCCESS_1; + } + if (!stream_info.is_kf) { GST_WARNING_OBJECT (dec, "No keyframe, skipping"); gst_video_decoder_finish_frame (GST_VIDEO_DECODER (dec), frame); return GST_FLOW_CUSTOM_SUCCESS_1; -- 2.7.4