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;
}
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;