summaryrefslogtreecommitdiff
path: root/src/playlist
diff options
context:
space:
mode:
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);