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
80d9baa9
Commit
80d9baa9
authored
Jul 12, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QueueSave: use the long format to save partial songs
Previously, only streams were saved with range and tags, but this is necessary for all "partial" songs (e.g. CUE tracks).
parent
751995ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
NEWS
NEWS
+1
-0
QueueSave.cxx
src/queue/QueueSave.cxx
+6
-1
No files found.
NEWS
View file @
80d9baa9
...
...
@@ -18,6 +18,7 @@ ver 0.19 (not yet released)
- smbclient: new plugin
* playlist
- cue: fix bogus duration of the last track
- cue: restore CUE tracks from state file
- soundcloud: use https instead of http
- soundcloud: add default API key
* archive
...
...
src/queue/QueueSave.cxx
View file @
80d9baa9
...
...
@@ -50,9 +50,14 @@ queue_save_full_song(FILE *fp, const DetachedSong &song)
static
void
queue_save_song
(
FILE
*
fp
,
int
idx
,
const
DetachedSong
&
song
)
{
if
(
song
.
IsInDatabase
())
if
(
song
.
IsInDatabase
()
&&
song
.
GetStartMS
()
==
0
&&
song
.
GetEndMS
()
==
0
)
/* use the brief format (just the URI) for "full"
database songs */
queue_save_database_song
(
fp
,
idx
,
song
);
else
/* use the long format (URI, range, tags) for the
rest, so all metadata survives a MPD restart */
queue_save_full_song
(
fp
,
song
);
}
...
...
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