tag/ApeLoader: remove exception handler, let caller catch
This commit is contained in:
parent
526c778162
commit
bdd3167495
|
@ -31,6 +31,8 @@ typedef std::function<bool(unsigned long flags, const char *key,
|
||||||
/**
|
/**
|
||||||
* Scans the APE tag values from a file.
|
* Scans the APE tag values from a file.
|
||||||
*
|
*
|
||||||
|
* Throws on I/O error.
|
||||||
|
*
|
||||||
* @return false if the file could not be opened or if no APE tag is
|
* @return false if the file could not be opened or if no APE tag is
|
||||||
* present
|
* present
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
class InputStream;
|
class InputStream;
|
||||||
struct ReplayGainInfo;
|
struct ReplayGainInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Throws on I/O error.
|
||||||
|
*/
|
||||||
bool
|
bool
|
||||||
replay_gain_ape_read(InputStream &is, ReplayGainInfo &info);
|
replay_gain_ape_read(InputStream &is, ReplayGainInfo &info);
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ tag_ape_import_item(unsigned long flags,
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
tag_ape_scan2(InputStream &is, TagHandler &handler) noexcept
|
tag_ape_scan2(InputStream &is, TagHandler &handler)
|
||||||
{
|
{
|
||||||
bool recognized = false;
|
bool recognized = false;
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,11 @@ class TagHandler;
|
||||||
/**
|
/**
|
||||||
* Scan the APE tags of a stream.
|
* Scan the APE tags of a stream.
|
||||||
*
|
*
|
||||||
|
* Throws on I/O error.
|
||||||
|
*
|
||||||
* @param path_fs the path of the file in filesystem encoding
|
* @param path_fs the path of the file in filesystem encoding
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
tag_ape_scan2(InputStream &is, TagHandler &handler) noexcept;
|
tag_ape_scan2(InputStream &is, TagHandler &handler);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue