Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8914d39a
Commit
8914d39a
authored
Jul 31, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New input_set_(time|position) in libvlc.
parent
d77533f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+2
-0
src/control/input.c
src/control/input.c
+39
-0
No files found.
include/vlc/libvlc.h
View file @
8914d39a
...
...
@@ -273,7 +273,9 @@ void libvlc_input_free( libvlc_input_t * );
/// \bug This might go away ... to be replaced by a broader system
vlc_int64_t
libvlc_input_get_length
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_int64_t
libvlc_input_get_time
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
void
libvlc_input_set_time
(
libvlc_input_t
*
,
vlc_int64_t
,
libvlc_exception_t
*
);
float
libvlc_input_get_position
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
void
libvlc_input_set_position
(
libvlc_input_t
*
,
float
,
libvlc_exception_t
*
);
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_bool_t
libvlc_input_has_vout
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_fps
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
...
...
src/control/input.c
View file @
8914d39a
...
...
@@ -100,6 +100,45 @@ vlc_int64_t libvlc_input_get_time( libvlc_input_t *p_input,
return
val
.
i_time
/
1000
;
}
void
libvlc_input_set_time
(
libvlc_input_t
*
p_input
,
vlc_int64_t
time
,
libvlc_exception_t
*
p_exception
)
{
input_thread_t
*
p_input_thread
;
vlc_value_t
value
;
p_input_thread
=
libvlc_get_input_thread
(
p_input
,
p_exception
);
if
(
libvlc_exception_raised
(
p_exception
)
)
return
;
value
.
i_time
=
time
;
var_Set
(
p_input_thread
,
"time"
,
value
);
vlc_object_release
(
p_input_thread
);
return
;
}
void
libvlc_input_set_position
(
libvlc_input_t
*
p_input
,
float
position
,
libvlc_exception_t
*
p_exception
)
{
input_thread_t
*
p_input_thread
;
vlc_value_t
val
;
val
.
f_float
=
position
;
p_input_thread
=
libvlc_get_input_thread
(
p_input
,
p_exception
);
if
(
libvlc_exception_raised
(
p_exception
)
)
return
;
var_Set
(
p_input_thread
,
"position"
,
val
);
vlc_object_release
(
p_input_thread
);
return
;
}
float
libvlc_input_get_position
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_exception
)
{
...
...
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