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
b74aa6b1
Commit
b74aa6b1
authored
Jan 22, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/upnp: don't duplicate song data for VisitSong
Not necessary because we control the LightSong's life cycle.
parent
0c4a7911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
UpnpDatabasePlugin.cxx
src/db/UpnpDatabasePlugin.cxx
+9
-2
No files found.
src/db/UpnpDatabasePlugin.cxx
View file @
b74aa6b1
...
...
@@ -350,14 +350,21 @@ UpnpDatabase::SearchSongs(ContentDirectoryService &server,
}
static
bool
visitSong
(
UPnPDirObject
&
&
meta
,
std
::
string
&&
path
,
visitSong
(
const
UPnPDirObject
&
meta
,
std
::
string
&&
path
,
const
DatabaseSelection
&
selection
,
VisitSong
visit_song
,
Error
&
error
)
{
if
(
!
visit_song
)
return
true
;
const
UpnpSong
song
(
std
::
move
(
meta
),
std
::
move
(
path
));
LightSong
song
;
song
.
directory
=
nullptr
;
song
.
uri
=
path
.
c_str
();
song
.
real_uri
=
meta
.
url
.
c_str
();
song
.
tag
=
&
meta
.
tag
;
song
.
mtime
=
0
;
song
.
start_ms
=
song
.
end_ms
=
0
;
return
!
selection
.
Match
(
song
)
||
visit_song
(
song
,
error
);
}
...
...
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