diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/decoder/plugins/FfmpegDecoderPlugin.cxx | 2 | ||||
-rw-r--r-- | test/test_protocol.cxx | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -2,6 +2,7 @@ ver 0.20.12 (not yet released) * input - curl: fix seeking * decoder + - ffmpeg: fix GCC 8 warning - vorbis: fix Tremor support * player - log message when decoder is too slow 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; diff --git a/test/test_protocol.cxx b/test/test_protocol.cxx index d6c8447e5..38f92fa3e 100644 --- a/test/test_protocol.cxx +++ b/test/test_protocol.cxx @@ -37,7 +37,7 @@ ArgParserTest::TestRange() try { range = ParseCommandArgRange("-2"); CPPUNIT_ASSERT(false); - } catch (ProtocolError) { + } catch (const ProtocolError &) { CPPUNIT_ASSERT(true); } } |