summaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-11-12 18:52:11 +0100
committerMax Kellermann <max@musicpd.org>2017-11-12 18:54:29 +0100
commita2b77c88136788e68824251ac33c0200f2c9cd17 (patch)
tree04d57885f03431ef947cdb5aaef0f7a0457841b1 /src/decoder
parent18add294721e07ee776387f1520ccf3b0e6c7a5c (diff)
decoder/ffmpeg, test/test_protocol: catch exceptions by reference
Work around -Werror=catch-value.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/FfmpegDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
index aba96886d..e154c9852 100644
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -258,7 +258,7 @@ FfmpegSendFrame(DecoderClient &client, InputStream &is,
try {
output_buffer = copy_interleave_frame(codec_context, frame,
buffer);
- } catch (const std::exception e) {
+ } catch (const std::exception &e) {
/* this must be a serious error, e.g. OOM */
LogError(e);
return DecoderCommand::STOP;