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
4c8a5dfb
Commit
4c8a5dfb
authored
Jun 23, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/proxy: use mpd_song_get_{start,end}() only with libmpdclient >= 2.3
parent
4f61ba76
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
NEWS
NEWS
+2
-0
ProxyDatabasePlugin.cxx
src/db/ProxyDatabasePlugin.cxx
+5
-0
No files found.
NEWS
View file @
4c8a5dfb
ver 0.18.12 (not yet released)
ver 0.18.12 (not yet released)
* database
- proxy: fix build failure with libmpdclient 2.2
ver 0.18.11 (2014/05/12)
ver 0.18.11 (2014/05/12)
* decoder
* decoder
...
...
src/db/ProxyDatabasePlugin.cxx
View file @
4c8a5dfb
...
@@ -398,8 +398,13 @@ Convert(const struct mpd_song *song)
...
@@ -398,8 +398,13 @@ Convert(const struct mpd_song *song)
Song
*
s
=
Song
::
NewDetached
(
mpd_song_get_uri
(
song
));
Song
*
s
=
Song
::
NewDetached
(
mpd_song_get_uri
(
song
));
s
->
mtime
=
mpd_song_get_last_modified
(
song
);
s
->
mtime
=
mpd_song_get_last_modified
(
song
);
#if LIBMPDCLIENT_CHECK_VERSION(2,3,0)
s
->
start_ms
=
mpd_song_get_start
(
song
)
*
1000
;
s
->
start_ms
=
mpd_song_get_start
(
song
)
*
1000
;
s
->
end_ms
=
mpd_song_get_end
(
song
)
*
1000
;
s
->
end_ms
=
mpd_song_get_end
(
song
)
*
1000
;
#else
s
->
start_ms
=
s
->
end_ms
=
0
;
#endif
TagBuilder
tag
;
TagBuilder
tag
;
tag
.
SetTime
(
mpd_song_get_duration
(
song
));
tag
.
SetTime
(
mpd_song_get_duration
(
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