From: Tim-Philipp Müller Date: Mon, 23 May 2016 18:28:39 +0000 (+0100) Subject: opus: use default error messages in some more cases X-Git-Tag: 1.19.3~511^2~2834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=108c7d6b3c04322145e3d46a9daa546d6be490c0;p=platform%2Fupstream%2Fgstreamer.git opus: use default error messages in some more cases --- diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index cac0c86..8f03da3 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -559,7 +559,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer) GstFlowReturn ret = GST_FLOW_ERROR; gst_buffer_unref (outbuf); - GST_AUDIO_DECODER_ERROR (dec, 1, STREAM, DECODE, ("Error decoding stream"), + GST_AUDIO_DECODER_ERROR (dec, 1, STREAM, DECODE, (NULL), ("Decoding error (%d): %s", n, opus_strerror (n)), ret); return ret; } diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index e309bc0..ed84058 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -1044,12 +1044,12 @@ gst_opus_enc_encode (GstOpusEnc * enc, GstBuffer * buf) gst_buffer_unmap (outbuf, &omap); if (outsize < 0) { - GST_ELEMENT_ERROR (enc, STREAM, ENCODE, ("Encoding failed"), - ("Encoding ifailed (%d): %s", outsize, opus_strerror (outsize))); + GST_ELEMENT_ERROR (enc, STREAM, ENCODE, (NULL), + ("Encoding failed (%d): %s", outsize, opus_strerror (outsize))); ret = GST_FLOW_ERROR; goto done; } else if (outsize > max_payload_size) { - GST_ELEMENT_ERROR (enc, STREAM, ENCODE, ("Encoder error"), + GST_ELEMENT_ERROR (enc, STREAM, ENCODE, (NULL), ("Encoded size %d is higher than max payload size (%d bytes)", outsize, max_payload_size)); ret = GST_FLOW_ERROR;