fs/Path: add method GetSuffix()

Type-safe wrapper for uri_get_suffix().
This commit is contained in:
Max Kellermann
2015-03-01 01:09:53 +01:00
parent 41cc31c124
commit 7ce96585f5
5 changed files with 14 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ playlist_open_path_suffix(Path path, Mutex &mutex, Cond &cond)
{
assert(!path.IsNull());
const char *suffix = uri_get_suffix(path.c_str());
const char *suffix = path.GetSuffix();
if (suffix == nullptr || !playlist_suffix_supported(suffix))
return nullptr;