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
62a129c1
Commit
62a129c1
authored
Mar 17, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistFile: ignore empty playlist names
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/465
and
https://github.com/MusicPlayerDaemon/MPD/pull/466
parent
c18cd941
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+1
-0
PlaylistFile.cxx
src/PlaylistFile.cxx
+3
-1
No files found.
NEWS
View file @
62a129c1
...
...
@@ -3,6 +3,7 @@ ver 0.21.6 (not yet released)
- allow loading playlists specified as absolute filesystem paths
- fix negated filter expressions with multiple tag values
- fix "list" with filter expression
- omit empty playlist names in "listplaylists"
* input
- cdio_paranoia: fix build failure due to missing #include
* decoder
...
...
src/PlaylistFile.cxx
View file @
62a129c1
...
...
@@ -134,7 +134,9 @@ LoadPlaylistFileInfo(PlaylistInfo &info,
const
auto
*
const
name_fs_end
=
FindStringSuffix
(
name_fs_str
,
PATH_LITERAL
(
PLAYLIST_FILE_SUFFIX
));
if
(
name_fs_end
==
nullptr
)
if
(
name_fs_end
==
nullptr
||
/* no empty playlist names (raw file name = ".m3u") */
name_fs_end
==
name_fs_str
)
return
false
;
FileInfo
fi
;
...
...
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