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
f45616e5
Commit
f45616e5
authored
Aug 16, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.17.x'
parents
e391f4b1
ef5125f8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
NEWS
NEWS
+2
-0
playlist_print.c
src/playlist_print.c
+3
-0
playlist_song.c
src/playlist_song.c
+4
-2
No files found.
NEWS
View file @
f45616e5
...
...
@@ -14,6 +14,8 @@ ver 0.17.2 (2012/??/??)
- httpd: fix throttling bug after resuming playback
* mapper: fix non-UTF8 music directory name
* mapper: fix potential crash in file permission check
* playlist: fix use-after-free bug
* playlist: fix memory leak
ver 0.17.1 (2012/07/31)
...
...
src/playlist_print.c
View file @
f45616e5
...
...
@@ -156,6 +156,9 @@ playlist_provider_print(struct client *client, const char *uri,
song_print_info
(
client
,
song
);
else
song_print_uri
(
client
,
song
);
if
(
!
song_in_database
(
song
)
||
song_is_detached
(
song
))
song_free
(
song
);
}
g_free
(
base_uri
);
...
...
src/playlist_song.c
View file @
f45616e5
...
...
@@ -69,7 +69,6 @@ apply_song_metadata(struct song *dest, const struct song *src)
}
else
{
tmp
=
song_file_new
(
dest
->
uri
,
NULL
);
merge_song_metadata
(
tmp
,
dest
,
src
);
song_free
(
dest
);
}
if
(
dest
->
tag
!=
NULL
&&
dest
->
tag
->
time
>
0
&&
...
...
@@ -80,11 +79,14 @@ apply_song_metadata(struct song *dest, const struct song *src)
(e.g. last track on a CUE file); fix it up here */
tmp
->
tag
->
time
=
dest
->
tag
->
time
-
src
->
start_ms
/
1000
;
if
(
!
song_in_database
(
dest
))
song_free
(
dest
);
return
tmp
;
}
static
struct
song
*
playlist_check_load_song
(
struct
song
*
song
,
const
char
*
uri
,
bool
secure
)
playlist_check_load_song
(
const
struct
song
*
song
,
const
char
*
uri
,
bool
secure
)
{
struct
song
*
dest
;
...
...
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