summaryrefslogtreecommitdiff
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-04-12 21:20:32 +0200
committerMax Kellermann <max@duempel.org>2016-04-21 14:27:32 +0200
commitfc3e0dfcd1a41bec76cb05f937acdb0a818cfd53 (patch)
treeb52eb4a4b9056076a6943f658cfec591421ec352 /src/playlist
parent6513ff92a7012819db464adad094b69e8b585127 (diff)
fs/AllocatedPath: add method FromUTF8Throw()
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx4
-rw-r--r--src/playlist/plugins/FlacPlaylistPlugin.cxx4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx b/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
index 996183d0d..d55c9093d 100644
--- a/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
+++ b/src/playlist/plugins/EmbeddedCuePlaylistPlugin.cxx
@@ -96,9 +96,7 @@ embcue_playlist_open_uri(const char *uri,
/* only local files supported */
return nullptr;
- const auto path_fs = AllocatedPath::FromUTF8(uri);
- if (path_fs.IsNull())
- return nullptr;
+ const auto path_fs = AllocatedPath::FromUTF8Throw(uri);
const auto playlist = new EmbeddedCuePlaylist();
diff --git a/src/playlist/plugins/FlacPlaylistPlugin.cxx b/src/playlist/plugins/FlacPlaylistPlugin.cxx
index 85eed0cdc..74aacf46c 100644
--- a/src/playlist/plugins/FlacPlaylistPlugin.cxx
+++ b/src/playlist/plugins/FlacPlaylistPlugin.cxx
@@ -94,9 +94,7 @@ flac_playlist_open_uri(const char *uri,
/* only local files supported */
return nullptr;
- const auto path_fs = AllocatedPath::FromUTF8(uri);
- if (path_fs.IsNull())
- return nullptr;
+ const auto path_fs = AllocatedPath::FromUTF8Throw(uri);
const NarrowPath narrow_path_fs(path_fs);