diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-09 20:29:19 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-09 20:29:19 +0000 |
| commit | 1c0f437ea1cbd6231ef9395b1f07c982cd408c39 (patch) | |
| tree | 1b951cfbaba9a85f75cb1a8ae54c6a997fc8fef8 /src/lib/resampler.cc | |
| parent | 2b69ea346a5c8f550c3be474db9734dd754eb1a0 (diff) | |
Try to fix crash on drop()ping JobManager. More debugging when resampler fails.
Diffstat (limited to 'src/lib/resampler.cc')
| -rw-r--r-- | src/lib/resampler.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc index 7bc933fd0..d897bf562 100644 --- a/src/lib/resampler.cc +++ b/src/lib/resampler.cc @@ -23,6 +23,7 @@ extern "C" { #include "resampler.h" #include "audio_buffers.h" #include "exceptions.h" +#include "compose.hpp" #include "i18n.h" @@ -77,7 +78,9 @@ Resampler::run (shared_ptr<const AudioBuffers> in, AudioContent::Frame frame) ); if (resampled_frames < 0) { - throw EncodeError (_("could not run sample-rate converter")); + char buf[256]; + av_strerror (resampled_frames, buf, sizeof(buf)); + throw EncodeError (String::compose (_("could not run sample-rate converter for %1 samples (%2) (%3)"), in->frames(), resampled_frames, buf)); } resampled->set_frames (resampled_frames); |
