diff options
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_file_encoder.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index 147e83a65..7f74ae4f6 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -404,7 +404,11 @@ FFmpegFileEncoder::flush () auto const r = av_write_trailer(_format_context); if (r) { - throw EncodeError(N_("av_write_trailer"), N_("FFmpegFileEncoder::flush"), r); + if (r == -ENOSPC) { + throw DiskFullError(_output); + } else { + throw EncodeError(N_("av_write_trailer"), N_("FFmpegFileEncoder::flush"), r); + } } } |
