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
01d37775
Commit
01d37775
authored
Aug 09, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Thread, ...: log all exceptions
parent
87570cdd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
20 deletions
+19
-20
Main.cxx
src/Main.cxx
+2
-2
StateFile.cxx
src/StateFile.cxx
+4
-4
OtherCommands.cxx
src/command/OtherCommands.cxx
+2
-2
SimpleDatabasePlugin.cxx
src/db/plugins/simple/SimpleDatabasePlugin.cxx
+2
-2
Walk.cxx
src/db/update/Walk.cxx
+4
-4
DecoderThread.cxx
src/decoder/DecoderThread.cxx
+1
-2
FfmpegDecoderPlugin.cxx
src/decoder/plugins/FfmpegDecoderPlugin.cxx
+2
-2
Discovery.cxx
src/lib/upnp/Discovery.cxx
+2
-2
No files found.
src/Main.cxx
View file @
01d37775
...
...
@@ -545,8 +545,8 @@ int mpd_main(int argc, char *argv[]) noexcept
try
{
return
MainOrThrow
(
argc
,
argv
);
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
return
EXIT_FAILURE
;
}
}
...
...
src/StateFile.cxx
View file @
01d37775
...
...
@@ -102,8 +102,8 @@ StateFile::Write()
FileOutputStream
fos
(
config
.
path
);
Write
(
fos
);
fos
.
Commit
();
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
}
RememberVersions
();
...
...
@@ -143,8 +143,8 @@ try {
}
RememberVersions
();
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
}
void
...
...
src/command/OtherCommands.cxx
View file @
01d37775
...
...
@@ -179,8 +179,8 @@ handle_lsinfo_relative(Client &client, Response &r, const char *uri)
if
(
isRootDirectory
(
uri
))
{
try
{
print_spl_list
(
r
,
ListPlaylistFiles
());
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
}
}
else
{
#ifndef ENABLE_DATABASE
...
...
src/db/plugins/simple/SimpleDatabasePlugin.cxx
View file @
01d37775
...
...
@@ -175,8 +175,8 @@ SimpleDatabase::Open()
try
{
Load
();
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
delete
root
;
...
...
src/db/update/Walk.cxx
View file @
01d37775
...
...
@@ -234,8 +234,8 @@ try {
FormatDebug
(
update_domain
,
"%s is not a directory, archive or music"
,
name
);
}
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
}
/* we don't look at "." / ".." nor files with newlines in their name */
...
...
@@ -477,8 +477,8 @@ try {
ExcludeList
exclude_list
;
UpdateDirectoryChild
(
*
parent
,
exclude_list
,
name
,
info
);
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
}
bool
...
...
src/decoder/DecoderThread.cxx
View file @
01d37775
...
...
@@ -536,9 +536,8 @@ DecoderControl::RunThread() noexcept
if
(
state
==
DecoderState
::
ERROR
)
{
try
{
std
::
rethrow_exception
(
error
);
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(...)
{
LogError
(
std
::
current_exception
());
}
}
...
...
src/decoder/plugins/FfmpegDecoderPlugin.cxx
View file @
01d37775
...
...
@@ -255,9 +255,9 @@ FfmpegSendFrame(DecoderClient &client, InputStream &is,
try
{
output_buffer
=
copy_interleave_frame
(
codec_context
,
frame
,
buffer
);
}
catch
(
const
std
::
exception
&
e
)
{
}
catch
(
...
)
{
/* this must be a serious error, e.g. OOM */
LogError
(
e
);
LogError
(
std
::
current_exception
()
);
return
DecoderCommand
::
STOP
;
}
...
...
src/lib/upnp/Discovery.cxx
View file @
01d37775
...
...
@@ -81,8 +81,8 @@ UPnPDeviceDirectory::Downloader::OnEnd()
try
{
d
.
Parse
(
url
,
data
.
c_str
());
}
catch
(
const
std
::
exception
&
e
)
{
LogError
(
e
);
}
catch
(
...
)
{
LogError
(
std
::
current_exception
()
);
}
parent
.
LockAdd
(
std
::
move
(
d
));
...
...
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