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
709d0455
Commit
709d0455
authored
Feb 01, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added input_GetPcrSystem/input_ModifyPcrSystem.
parent
b27904ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
include/vlc_input.h
include/vlc_input.h
+19
-0
src/input/control.c
src/input/control.c
+13
-0
No files found.
include/vlc_input.h
View file @
709d0455
...
...
@@ -512,6 +512,10 @@ enum input_query_e
INPUT_GET_AOUT
,
/* arg1=aout_instance_t ** res=can fail */
INPUT_GET_VOUTS
,
/* arg1=vout_thread_t ***, int * res=can fail */
INPUT_GET_ES_OBJECTS
,
/* arg1=int id, vlc_object_t **dec, vout_thread_t **, aout_instance_t ** */
/* External clock managments */
INPUT_GET_PCR_SYSTEM
,
/* arg1=mtime_t * res=can fail */
INPUT_MODIFY_PCR_SYSTEM
,
/* arg1=int absolute, arg2=mtime_t res=can fail */
};
/** @}*/
...
...
@@ -613,6 +617,21 @@ static inline int input_GetEsObjects( input_thread_t *p_input, int i_id,
pp_decoder
,
pp_vout
,
pp_aout
);
}
/**
* \see input_clock_GetSystemOrigin
*/
static
inline
int
input_GetPcrSystem
(
input_thread_t
*
p_input
,
mtime_t
*
pi_system
)
{
return
input_Control
(
p_input
,
INPUT_GET_PCR_SYSTEM
,
pi_system
);
}
/**
* \see input_clock_ChangeSystemOrigin
*/
static
inline
int
input_ModifyPcrSystem
(
input_thread_t
*
p_input
,
bool
b_absolute
,
mtime_t
i_system
)
{
return
input_Control
(
p_input
,
INPUT_MODIFY_PCR_SYSTEM
,
b_absolute
,
i_system
);
}
/* */
typedef
struct
input_clock_t
input_clock_t
;
VLC_EXPORT
(
decoder_t
*
,
input_DecoderNew
,
(
input_thread_t
*
,
es_format_t
*
,
input_clock_t
*
,
sout_instance_t
*
)
);
...
...
src/input/control.c
View file @
709d0455
...
...
@@ -449,6 +449,19 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
pp_decoder
,
pp_vout
,
pp_aout
);
}
case
INPUT_GET_PCR_SYSTEM
:
{
mtime_t
*
pi_system
=
va_arg
(
args
,
mtime_t
*
);
return
es_out_ControlGetPcrSystem
(
p_input
->
p
->
p_es_out_display
,
pi_system
);
}
case
INPUT_MODIFY_PCR_SYSTEM
:
{
bool
b_absolute
=
va_arg
(
args
,
int
);
mtime_t
i_system
=
va_arg
(
args
,
mtime_t
);
return
es_out_ControlModifyPcrSystem
(
p_input
->
p
->
p_es_out_display
,
b_absolute
,
i_system
);
}
default:
msg_Err
(
p_input
,
"unknown query in input_vaControl"
);
return
VLC_EGENERIC
;
...
...
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