Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e63f4a4b
Commit
e63f4a4b
authored
Jun 10, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial implementation of libvlc_get_input_fps.
parent
9781b846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
include/vlc/libvlc.h
include/vlc/libvlc.h
+2
-1
src/control/input.c
src/control/input.c
+15
-0
No files found.
include/vlc/libvlc.h
View file @
e63f4a4b
...
@@ -270,7 +270,8 @@ vlc_int64_t libvlc_input_get_time ( libvlc_input_t *, libvlc_exception_t *
...
@@ -270,7 +270,8 @@ vlc_int64_t libvlc_input_get_time ( libvlc_input_t *, libvlc_exception_t *
float
libvlc_input_get_position
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_position
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
,
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
*
);
vlc_bool_t
libvlc_input_has_vout
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_fps
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/** @} */
/** @} */
/** defgroup libvlc_video Video
/** defgroup libvlc_video Video
...
...
src/control/input.c
View file @
e63f4a4b
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
*****************************************************************************/
*****************************************************************************/
#include <libvlc_internal.h>
#include <libvlc_internal.h>
#include <vlc_demux.h>
#include <vlc/libvlc.h>
#include <vlc/libvlc.h>
#include <vlc/intf.h>
#include <vlc/intf.h>
...
@@ -116,6 +117,20 @@ float libvlc_input_get_position( libvlc_input_t *p_input,
...
@@ -116,6 +117,20 @@ float libvlc_input_get_position( libvlc_input_t *p_input,
return
val
.
f_float
;
return
val
.
f_float
;
}
}
float
libvlc_input_get_fps
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_exception
)
{
double
f_fps
;
input_thread_t
*
p_input_thread
;
p_input_thread
=
libvlc_get_input_thread
(
p_input
,
p_exception
);
if
(
demux2_Control
(
p_input_thread
->
input
.
p_demux
,
DEMUX_GET_FPS
,
&
f_fps
)
||
f_fps
<
0
.
1
)
return
0
;
else
return
(
f_fps
);
}
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
p_input
,
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_exception
)
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