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
0051f028
Commit
0051f028
authored
Jan 16, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Privatized p_input->b_can_pace_control.
parent
c63257e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
13 deletions
+12
-13
include/vlc_input.h
include/vlc_input.h
+0
-2
src/input/es_out.c
src/input/es_out.c
+3
-3
src/input/es_out_timeshift.c
src/input/es_out_timeshift.c
+3
-3
src/input/input.c
src/input/input.c
+5
-5
src/input/input_internal.h
src/input/input_internal.h
+1
-0
No files found.
include/vlc_input.h
View file @
0051f028
...
...
@@ -411,8 +411,6 @@ struct input_thread_t
bool
b_preparsing
;
bool
b_dead
;
bool
b_can_pace_control
;
/* All other data is input_thread is PRIVATE. You can't access it
* outside of src/input */
input_thread_private_t
*
p
;
...
...
src/input/es_out.c
View file @
0051f028
...
...
@@ -384,8 +384,8 @@ static mtime_t EsOutGetWakeup( es_out_t *out )
/* We do not have a wake up date if the input cannot have its speed
* controlled or sout is imposing its own or while buffering
*
* FIXME for !p_input->b_can_pace_control a wkeup time is still needed to avoid too strong buffering */
if
(
!
p_input
->
b_can_pace_control
||
* FIXME for !p_input->
p->
b_can_pace_control a wkeup time is still needed to avoid too strong buffering */
if
(
!
p_input
->
p
->
b_can_pace_control
||
p_input
->
p
->
b_out_pace_control
||
p_sys
->
b_buffering
)
return
0
;
...
...
@@ -2181,7 +2181,7 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
/* search program
* TODO do not use mdate() but proper stream acquisition date */
input_clock_Update
(
p_pgrm
->
p_clock
,
VLC_OBJECT
(
p_sys
->
p_input
),
p_sys
->
p_input
->
b_can_pace_control
||
p_sys
->
b_buffering
,
i_pcr
,
mdate
()
);
p_sys
->
p_input
->
p
->
b_can_pace_control
||
p_sys
->
b_buffering
,
i_pcr
,
mdate
()
);
/* Check buffering state on master clock update */
if
(
p_sys
->
b_buffering
&&
p_pgrm
==
p_sys
->
p_pgrm
)
EsOutDecodersStopBuffering
(
out
,
false
);
...
...
src/input/es_out_timeshift.c
View file @
0051f028
...
...
@@ -457,7 +457,7 @@ static int ControlLockedGetWakeup( es_out_t *p_out, mtime_t *pi_wakeup )
if
(
p_sys
->
b_delayed
)
{
assert
(
!
p_sys
->
p_input
->
b_can_pace_control
);
assert
(
!
p_sys
->
p_input
->
p
->
b_can_pace_control
);
*
pi_wakeup
=
0
;
}
else
...
...
@@ -490,7 +490,7 @@ static int ControlLockedSetPauseState( es_out_t *p_out, bool b_source_paused, bo
else
{
i_ret
=
VLC_EGENERIC
;
if
(
!
p_sys
->
p_input
->
b_can_pace_control
)
if
(
!
p_sys
->
p_input
->
p
->
b_can_pace_control
)
{
if
(
!
p_sys
->
b_delayed
)
TsStart
(
p_out
);
...
...
@@ -525,7 +525,7 @@ static int ControlLockedSetRate( es_out_t *p_out, int i_src_rate, int i_rate )
else
{
i_ret
=
VLC_EGENERIC
;
if
(
!
p_sys
->
p_input
->
b_can_pace_control
)
if
(
!
p_sys
->
p_input
->
p
->
b_can_pace_control
)
{
if
(
!
p_sys
->
b_delayed
)
TsStart
(
p_out
);
...
...
src/input/input.c
View file @
0051f028
...
...
@@ -165,7 +165,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
/* Init Common fields */
p_input
->
b_eof
=
false
;
p_input
->
b_can_pace_control
=
true
;
p_input
->
p
->
b_can_pace_control
=
true
;
p_input
->
p
->
i_start
=
0
;
p_input
->
p
->
i_time
=
0
;
p_input
->
p
->
i_stop
=
0
;
...
...
@@ -901,7 +901,7 @@ static void InitTitle( input_thread_t * p_input )
}
/* Global flag */
p_input
->
b_can_pace_control
=
p_master
->
b_can_pace_control
;
p_input
->
p
->
b_can_pace_control
=
p_master
->
b_can_pace_control
;
p_input
->
p
->
b_can_pause
=
p_master
->
b_can_pause
;
p_input
->
p
->
b_can_rate_control
=
p_master
->
b_can_rate_control
;
...
...
@@ -1181,7 +1181,7 @@ static int Init( input_thread_t * p_input )
{
p_input
->
p
->
b_out_pace_control
=
(
p_input
->
p
->
p_sout
->
i_out_pace_nocontrol
>
0
);
if
(
p_input
->
b_can_pace_control
&&
p_input
->
p
->
b_out_pace_control
)
if
(
p_input
->
p
->
b_can_pace_control
&&
p_input
->
p
->
b_out_pace_control
)
{
/* We don't want a high input priority here or we'll
* end-up sucking up all the CPU time */
...
...
@@ -1773,7 +1773,7 @@ static bool Control( input_thread_t *p_input, int i_type,
i_rate
=
INPUT_RATE_DEFAULT
;
}
if
(
i_rate
!=
p_input
->
p
->
i_rate
&&
!
p_input
->
b_can_pace_control
&&
p_input
->
p
->
b_can_rate_control
)
!
p_input
->
p
->
b_can_pace_control
&&
p_input
->
p
->
b_can_rate_control
)
{
int
i_ret
;
if
(
p_input
->
p
->
input
.
p_access
)
...
...
@@ -1803,7 +1803,7 @@ static bool Control( input_thread_t *p_input, int i_type,
if
(
p_input
->
p
->
input
.
b_rescale_ts
)
{
const
int
i_rate_source
=
(
p_input
->
b_can_pace_control
||
p_input
->
p
->
b_can_rate_control
)
?
i_rate
:
INPUT_RATE_DEFAULT
;
const
int
i_rate_source
=
(
p_input
->
p
->
b_can_pace_control
||
p_input
->
p
->
b_can_rate_control
)
?
i_rate
:
INPUT_RATE_DEFAULT
;
es_out_SetRate
(
p_input
->
p
->
p_es_out
,
i_rate_source
,
i_rate
);
}
...
...
src/input/input_internal.h
View file @
0051f028
...
...
@@ -78,6 +78,7 @@ struct input_thread_private_t
/* Global properties */
bool
b_can_pause
;
bool
b_can_rate_control
;
bool
b_can_pace_control
;
double
f_fps
;
int
i_state
;
...
...
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