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
d09a0fbf
Commit
d09a0fbf
authored
Jun 05, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc enhanced:
* video height/width retrieval * input playing status check
parent
74c5cd2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
include/vlc/libvlc.h
include/vlc/libvlc.h
+5
-4
src/control/input.c
src/control/input.c
+14
-2
src/control/video.c
src/control/video.c
+1
-1
No files found.
include/vlc/libvlc.h
View file @
d09a0fbf
...
...
@@ -265,10 +265,11 @@ libvlc_input_t *libvlc_playlist_get_input( libvlc_instance_t *,
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
*
);
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_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
*
);
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_has_vout
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/** @} */
...
...
src/control/input.c
View file @
d09a0fbf
...
...
@@ -116,9 +116,7 @@ float libvlc_input_get_position( libvlc_input_t *p_input,
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_exception
)
{
input_thread_t
*
p_input_thread
;
vlc_value_t
val
;
if
(
!
p_input
)
{
...
...
@@ -141,3 +139,17 @@ vlc_bool_t libvlc_input_will_play( libvlc_input_t *p_input,
return
VLC_FALSE
;
}
vlc_bool_t
libvlc_input_has_vout
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_e
)
{
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
/* GetVout will raise the exception for us */
if
(
!
p_vout
)
{
return
VLC_FALSE
;
}
return
VLC_TRUE
;
}
src/control/video.c
View file @
d09a0fbf
...
...
@@ -27,7 +27,7 @@
#include <vlc/vout.h>
#include <vlc/intf.h>
static
vout_thread_t
*
GetVout
(
libvlc_input_t
*
p_input
,
vout_thread_t
*
GetVout
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_exception
)
{
input_thread_t
*
p_input_thread
;
...
...
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