Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
5a1e9215
Commit
5a1e9215
authored
Feb 19, 2018
by
Hugo Beauzée-Luyssen
Browse files
MetadataParser: Remove useless copies
parent
18ae38e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/metadata_services/MetadataParser.cpp
View file @
5a1e9215
...
...
@@ -318,14 +318,14 @@ void MetadataParser::addPlaylistElement( parser::Task& task, const std::shared_p
auto
probePtr
=
std
::
unique_ptr
<
prober
::
PathProbe
>
(
new
prober
::
PathProbe
{
utils
::
file
::
stripScheme
(
mrl
),
isDirectory
,
playlistPtr
,
parentFolder
,
utils
::
file
::
stripScheme
(
directoryMrl
),
index
,
true
}
);
auto
d
iscoverer
=
FsD
iscoverer
(
fsFactory
,
m_ml
,
nullptr
,
std
::
move
(
probePtr
)
);
FsD
iscoverer
d
iscoverer
(
fsFactory
,
m_ml
,
nullptr
,
std
::
move
(
probePtr
)
);
discoverer
.
reload
(
entryPoint
);
return
;
}
auto
probePtr
=
std
::
unique_ptr
<
prober
::
PathProbe
>
(
new
prober
::
PathProbe
{
utils
::
file
::
stripScheme
(
mrl
),
isDirectory
,
playlistPtr
,
parentFolder
,
utils
::
file
::
stripScheme
(
directoryMrl
),
index
,
false
}
);
auto
d
iscoverer
=
FsD
iscoverer
(
fsFactory
,
m_ml
,
nullptr
,
std
::
move
(
probePtr
)
);
FsD
iscoverer
d
iscoverer
(
fsFactory
,
m_ml
,
nullptr
,
std
::
move
(
probePtr
)
);
if
(
parentKnown
==
false
)
{
discoverer
.
discover
(
entryPoint
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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