Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
medialibrary
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alaric Senat
medialibrary
Commits
10a9bd84
Commit
10a9bd84
authored
2 years ago
by
Hugo Beauzée-Luyssen
Browse files
Options
Downloads
Patches
Plain Diff
thumbnailer: core: Fix API usage
parent
0efc0d77
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/thumbnails/CoreThumbnailer.cpp
+2
-2
2 additions, 2 deletions
src/thumbnails/CoreThumbnailer.cpp
test/samples/samples
+1
-1
1 addition, 1 deletion
test/samples/samples
with
3 additions
and
3 deletions
src/thumbnails/CoreThumbnailer.cpp
+
2
−
2
View file @
10a9bd84
...
...
@@ -46,7 +46,7 @@ bool CoreThumbnailer::generate( const IMedia&, const std::string& mrl,
auto
done
=
false
;
VLC
::
Picture
thumbnail
;
{
m_vlcMedia
=
VLC
::
Media
{
VLCInstance
::
get
(),
mrl
,
VLC
::
Media
::
FromType
::
FromLocation
};
m_vlcMedia
=
VLC
::
Media
{
mrl
,
VLC
::
Media
::
FromType
::
FromLocation
};
auto
em
=
m_vlcMedia
.
eventManager
();
em
.
onThumbnailGenerated
([
this
,
&
cond
,
&
thumbnail
,
&
done
](
const
VLC
::
Picture
*
p
)
{
...
...
@@ -58,7 +58,7 @@ bool CoreThumbnailer::generate( const IMedia&, const std::string& mrl,
}
cond
.
notify_all
();
});
m_request
=
m_vlcMedia
.
thumbnailRequestByPos
(
position
,
VLC
::
Media
::
ThumbnailSeekSpeed
::
Fast
,
m_request
=
m_vlcMedia
.
thumbnailRequestByPos
(
VLCInstance
::
get
(),
position
,
VLC
::
Media
::
ThumbnailSeekSpeed
::
Fast
,
desiredWidth
,
desiredHeight
,
desiredWidth
!=
0
&&
desiredHeight
!=
0
,
VLC
::
Picture
::
Type
::
Jpg
,
3000
);
...
...
This diff is collapsed.
Click to expand it.
samples
@
cc5e5766
Compare
6399f6dc
...
cc5e5766
Subproject commit
6399f6dcbd9ee603f268f3b8b238f21816574697
Subproject commit
cc5e576696f6a74a1a7d3882433212c6a34c62ab
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment