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
2cf6ab57
Commit
2cf6ab57
authored
Oct 22, 2015
by
Hugo Beauzée-Luyssen
Browse files
VLCThumbnailer: Don't compute a snapshot if the file already has one
parent
307bb3ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/metadata_services/vlc/VLCThumbnailer.cpp
View file @
2cf6ab57
...
...
@@ -66,6 +66,12 @@ void VLCThumbnailer::run(std::shared_ptr<Media> file, void *data )
m_cb
->
done
(
file
,
Status
::
Success
,
data
);
return
;
}
else
if
(
file
->
snapshot
().
empty
()
==
false
)
{
LOG_INFO
(
file
->
snapshot
(),
" already has a snapshot"
);
m_cb
->
done
(
file
,
Status
::
Success
,
data
);
return
;
}
VLC
::
Media
media
(
m_instance
,
file
->
mrl
(),
VLC
::
Media
::
FromPath
);
media
.
addOption
(
":no-audio"
);
...
...
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