ext/wavpack/gstwavpackdec.c: Also print a useful error message with the old Wavpack API if possible.

Original commit message from CVS:
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain):
Also print a useful error message with the old Wavpack API
if possible.
This commit is contained in:
Sebastian Dröge 2007-12-09 16:49:09 +00:00
parent 8e51b9930b
commit b22993e9b2
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-12-09 Sebastian Dröge <slomo@circular-chaos.org>
* ext/wavpack/gstwavpackdec.c: (gst_wavpack_dec_chain):
Also print a useful error message with the old Wavpack API
if possible.
2007-12-09 Tim-Philipp Müller <tim at centricular dot net>
* ext/wavpack/gstwavpackdec.c:

View file

@ -417,7 +417,9 @@ decode_error:
const gchar *reason = "unknown";
if (dec->context) {
#ifndef WAVPACK_OLD_API
#ifdef WAVPACK_OLD_API
reason = dec->context->error_message;
#else
reason = WavpackGetErrorMessage (dec->context);
#endif
} else {