diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-17 15:44:58 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-17 15:44:58 +0200 |
| commit | 6abf2fdd53b14608561fcc1900507daea5b79fb7 (patch) | |
| tree | f35ecc5becacc3733c856d20051f58d681a2d454 /src/lib/ffmpeg_encoder.cc | |
| parent | fe44dba0f2ad2ad9fcdfcee11213794a7a6a01e0 (diff) | |
Report better errors when the butler dies.
Adapted from d23f55d8cd73adda823d0a2fcabc129b8845a81 in master.
Diffstat (limited to 'src/lib/ffmpeg_encoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_encoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc index cf91a9fae..cd03c7b93 100644 --- a/src/lib/ffmpeg_encoder.cc +++ b/src/lib/ffmpeg_encoder.cc @@ -174,7 +174,7 @@ FFmpegEncoder::go () pair<shared_ptr<PlayerVideo>, DCPTime> v = _butler->get_video (true, &e); _butler->rethrow (); if (!v.first) { - throw ProgrammingError(__FILE__, __LINE__, String::compose("butler returned no video; error was %1", static_cast<int>(e))); + throw ProgrammingError(__FILE__, __LINE__, String::compose("butler returned no video; error was %1", e.summary())); } shared_ptr<FFmpegFileEncoder> fe = encoder->get (v.first->eyes()); if (fe) { |
