Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
0f762cdd
Commit
0f762cdd
authored
Jul 03, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: make SeekPoints handle jump to chapter requests
parent
7def61c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
modules/gui/qt4/adapters/seekpoints.cpp
modules/gui/qt4/adapters/seekpoints.cpp
+10
-0
modules/gui/qt4/adapters/seekpoints.hpp
modules/gui/qt4/adapters/seekpoints.hpp
+1
-0
No files found.
modules/gui/qt4/adapters/seekpoints.cpp
View file @
0f762cdd
...
...
@@ -71,3 +71,13 @@ QList<SeekPoint> const SeekPoints::getPoints()
return
copy
;
}
bool
SeekPoints
::
jumpTo
(
int
i_chapterindex
)
{
vlc_value_t
val
;
val
.
i_int
=
i_chapterindex
;
input_thread_t
*
p_input_thread
=
playlist_CurrentInput
(
THEPL
);
if
(
!
p_input_thread
)
return
false
;
bool
b_succ
=
var_Set
(
p_input_thread
,
"chapter"
,
val
);
vlc_object_release
(
p_input_thread
);
return
(
b_succ
==
VLC_SUCCESS
);
}
modules/gui/qt4/adapters/seekpoints.hpp
View file @
0f762cdd
...
...
@@ -50,6 +50,7 @@ public:
QList
<
SeekPoint
>
const
getPoints
();
bool
access
()
{
return
listMutex
.
tryLock
(
100
);
}
void
release
()
{
listMutex
.
unlock
();
}
bool
jumpTo
(
int
);
public
slots
:
void
update
();
...
...
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