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
8120e31b
Commit
8120e31b
authored
Oct 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_instance.c: Implement get/set chapter. (Patch by Enrique Osuna).
parent
2010d13a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
src/control/media_instance.c
src/control/media_instance.c
+51
-0
No files found.
src/control/media_instance.c
View file @
8120e31b
...
...
@@ -595,6 +595,57 @@ float libvlc_media_instance_get_position(
return
val
.
f_float
;
}
void
libvlc_media_instance_set_chapter
(
libvlc_media_instance_t
*
p_mi
,
int
chapter
,
libvlc_exception_t
*
p_e
)
{
input_thread_t
*
p_input_thread
;
vlc_value_t
val
;
val
.
i_int
=
chapter
;
p_input_thread
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
if
(
!
p_input_thread
)
return
;
var_Set
(
p_input_thread
,
"chapter"
,
val
);
vlc_object_release
(
p_input_thread
);
}
int
libvlc_media_instance_get_chapter
(
libvlc_media_instance_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
{
input_thread_t
*
p_input_thread
;
vlc_value_t
val
;
p_input_thread
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
if
(
!
p_input_thread
)
return
-
1
.
0
;
var_Get
(
p_input_thread
,
"chapter"
,
&
val
);
vlc_object_release
(
p_input_thread
);
return
val
.
i_int
;
}
int
libvlc_media_instance_get_chapter_count
(
libvlc_media_instance_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
{
input_thread_t
*
p_input_thread
;
vlc_value_t
val
;
p_input_thread
=
libvlc_get_input_thread
(
p_mi
,
p_e
);
if
(
!
p_input_thread
)
return
-
1
.
0
;
var_Change
(
p_input_thread
,
"chapter"
,
VLC_VAR_CHOICESCOUNT
,
&
val
,
NULL
);
vlc_object_release
(
p_input_thread
);
return
val
.
i_int
;
}
float
libvlc_media_instance_get_fps
(
libvlc_media_instance_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
...
...
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