Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a2b77c88
Commit
a2b77c88
authored
Nov 12, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/ffmpeg, test/test_protocol: catch exceptions by reference
Work around -Werror=catch-value.
parent
18add294
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
NEWS
NEWS
+1
-0
FfmpegDecoderPlugin.cxx
src/decoder/plugins/FfmpegDecoderPlugin.cxx
+1
-1
test_protocol.cxx
test/test_protocol.cxx
+1
-1
No files found.
NEWS
View file @
a2b77c88
...
...
@@ -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
...
...
src/decoder/plugins/FfmpegDecoderPlugin.cxx
View file @
a2b77c88
...
...
@@ -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
;
...
...
test/test_protocol.cxx
View file @
a2b77c88
...
...
@@ -37,7 +37,7 @@ ArgParserTest::TestRange()
try
{
range
=
ParseCommandArgRange
(
"-2"
);
CPPUNIT_ASSERT
(
false
);
}
catch
(
ProtocolError
)
{
}
catch
(
const
ProtocolError
&
)
{
CPPUNIT_ASSERT
(
true
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment