summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-09-21 16:43:38 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-09-21 16:43:38 +0200
commit1c5c5ea9b870b277969d919c36ff1e6e786bf3d0 (patch)
treec53c82e6749d84ff2ddfce03db700734a167d671
parentdde9232e10d21263c28ef8d4d1c18fda54b92c30 (diff)
h264: review and report errors accordingly.
Use GST_ERROR() to report real errors instead of hiding them into GST_DEBUG().
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_h264.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
index 20cd5972..7e786953 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c
@@ -1615,7 +1615,7 @@ init_picture(
init_picture_poc(decoder, picture, slice_hdr);
if (!init_picture_refs(decoder, picture, slice_hdr)) {
- GST_DEBUG("failed to initialize references");
+ GST_ERROR("failed to initialize references");
return FALSE;
}
return TRUE;
@@ -1921,7 +1921,7 @@ decode_picture(GstVaapiDecoderH264 *decoder, GstH264NalUnit *nalu, GstH264SliceH
status = ensure_context(decoder, sps);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS) {
- GST_DEBUG("failed to reset context");
+ GST_ERROR("failed to reset context");
return status;
}
@@ -1930,20 +1930,20 @@ decode_picture(GstVaapiDecoderH264 *decoder, GstH264NalUnit *nalu, GstH264SliceH
picture = gst_vaapi_picture_h264_new(decoder);
if (!picture) {
- GST_DEBUG("failed to allocate picture");
+ GST_ERROR("failed to allocate picture");
return GST_VAAPI_DECODER_STATUS_ERROR_ALLOCATION_FAILED;
}
priv->current_picture = picture;
picture->base.iq_matrix = GST_VAAPI_IQ_MATRIX_NEW(H264, decoder);
if (!picture->base.iq_matrix) {
- GST_DEBUG("failed to allocate IQ matrix");
+ GST_ERROR("failed to allocate IQ matrix");
return GST_VAAPI_DECODER_STATUS_ERROR_ALLOCATION_FAILED;
}
status = ensure_quant_matrix(decoder, pps);
if (status != GST_VAAPI_DECODER_STATUS_SUCCESS) {
- GST_DEBUG("failed to reset quantizer matrix");
+ GST_ERROR("failed to reset quantizer matrix");
return status;
}
@@ -2157,7 +2157,7 @@ decode_slice(GstVaapiDecoderH264 *decoder, GstH264NalUnit *nalu)
nalu->size
);
if (!slice) {
- GST_DEBUG("failed to allocate slice");
+ GST_ERROR("failed to allocate slice");
return GST_VAAPI_DECODER_STATUS_ERROR_ALLOCATION_FAILED;
}
@@ -2322,7 +2322,7 @@ decode_buffer(GstVaapiDecoderH264 *decoder, GstBuffer *buffer)
status = GST_VAAPI_DECODER_STATUS_SUCCESS;
break;
default:
- GST_DEBUG("unsupported NAL unit type %d", nalu.type);
+ GST_WARNING("unsupported NAL unit type %d", nalu.type);
status = GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
break;
}
@@ -2351,7 +2351,7 @@ decode_codec_data(GstVaapiDecoderH264 *decoder, GstBuffer *buffer)
return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
if (buf[0] != 1) {
- GST_DEBUG("failed to decode codec-data, not in avcC format");
+ GST_ERROR("failed to decode codec-data, not in avcC format");
return GST_VAAPI_DECODER_STATUS_ERROR_BITSTREAM_PARSER;
}