opus: use default error messages in some more cases
This commit is contained in:
parent
c056b99f94
commit
108c7d6b3c
@ -559,7 +559,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer)
|
|||||||
GstFlowReturn ret = GST_FLOW_ERROR;
|
GstFlowReturn ret = GST_FLOW_ERROR;
|
||||||
|
|
||||||
gst_buffer_unref (outbuf);
|
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);
|
("Decoding error (%d): %s", n, opus_strerror (n)), ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1044,12 +1044,12 @@ gst_opus_enc_encode (GstOpusEnc * enc, GstBuffer * buf)
|
|||||||
gst_buffer_unmap (outbuf, &omap);
|
gst_buffer_unmap (outbuf, &omap);
|
||||||
|
|
||||||
if (outsize < 0) {
|
if (outsize < 0) {
|
||||||
GST_ELEMENT_ERROR (enc, STREAM, ENCODE, ("Encoding failed"),
|
GST_ELEMENT_ERROR (enc, STREAM, ENCODE, (NULL),
|
||||||
("Encoding ifailed (%d): %s", outsize, opus_strerror (outsize)));
|
("Encoding failed (%d): %s", outsize, opus_strerror (outsize)));
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
goto done;
|
goto done;
|
||||||
} else if (outsize > max_payload_size) {
|
} 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)",
|
("Encoded size %d is higher than max payload size (%d bytes)",
|
||||||
outsize, max_payload_size));
|
outsize, max_payload_size));
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user