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
a0fae8da
Commit
a0fae8da
authored
Oct 17, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/extm3u: strip first line for #EXTM3U detection
parent
bc840b69
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
NEWS
NEWS
+2
-0
ExtM3uPlaylistPlugin.cxx
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
+6
-2
No files found.
NEWS
View file @
a0fae8da
ver 0.19.1 (not yet released)
* input
- mms: fix deadlock bug
* playlist
- extm3u: fix Extended M3U detection
* fix build failure on Mac OS X
* add missing file systemd/mpd.socket to tarball
...
...
src/playlist/plugins/ExtM3uPlaylistPlugin.cxx
View file @
a0fae8da
...
...
@@ -39,8 +39,12 @@ public:
}
bool
CheckFirstLine
()
{
const
char
*
line
=
tis
.
ReadLine
();
return
line
!=
nullptr
&&
strcmp
(
line
,
"#EXTM3U"
)
==
0
;
char
*
line
=
tis
.
ReadLine
();
if
(
line
==
nullptr
)
return
false
;
StripRight
(
line
);
return
strcmp
(
line
,
"#EXTM3U"
)
==
0
;
}
virtual
DetachedSong
*
NextSong
()
override
;
...
...
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