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
8a9f04f7
Commit
8a9f04f7
authored
Feb 19, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/Id3: catch exceptions
parent
98bd4dfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
TagId3.cxx
src/tag/TagId3.cxx
+14
-6
No files found.
src/tag/TagId3.cxx
View file @
8a9f04f7
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <id3tag.h>
#include <id3tag.h>
#include <string>
#include <string>
#include <stdexcept>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
...
@@ -507,12 +508,19 @@ bool
...
@@ -507,12 +508,19 @@ bool
tag_id3_scan
(
Path
path_fs
,
tag_id3_scan
(
Path
path_fs
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
{
Error
error
;
struct
id3_tag
*
tag
;
struct
id3_tag
*
tag
=
tag_id3_load
(
path_fs
,
error
);
if
(
tag
==
nullptr
)
{
try
{
if
(
error
.
IsDefined
())
Error
error
;
LogError
(
error
);
tag
=
tag_id3_load
(
path_fs
,
error
);
if
(
tag
==
nullptr
)
{
if
(
error
.
IsDefined
())
LogError
(
error
);
return
false
;
}
}
catch
(
const
std
::
runtime_error
&
e
)
{
LogError
(
e
);
return
false
;
return
false
;
}
}
...
...
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