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
8cf743d0
Commit
8cf743d0
authored
Feb 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: remove write-only demux-polled flag
parent
f658f93c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
src/input/input.c
src/input/input.c
+5
-20
No files found.
src/input/input.c
View file @
8cf743d0
...
...
@@ -88,7 +88,7 @@ static void InputSourceMeta( input_thread_t *, input_source_t *, vlc_meta_t * );
/* TODO */
//static void InputGetAttachments( input_thread_t *, input_source_t * );
static
void
SlaveDemux
(
input_thread_t
*
p_input
,
bool
*
pb_demux_polled
);
static
void
SlaveDemux
(
input_thread_t
*
p_input
);
static
void
SlaveSeek
(
input_thread_t
*
p_input
);
static
void
InputMetaUser
(
input_thread_t
*
p_input
,
vlc_meta_t
*
p_meta
);
...
...
@@ -538,12 +538,11 @@ static void *Run( void *obj )
* MainLoopDemux
* It asks the demuxer to demux some data
*/
static
void
MainLoopDemux
(
input_thread_t
*
p_input
,
bool
*
pb_changed
,
bool
*
pb_demux_polled
,
mtime_t
i_start_mdate
)
static
void
MainLoopDemux
(
input_thread_t
*
p_input
,
bool
*
pb_changed
,
mtime_t
i_start_mdate
)
{
int
i_ret
;
*
pb_changed
=
false
;
*
pb_demux_polled
=
p_input
->
p
->
input
.
p_demux
->
pf_demux
!=
NULL
;
if
(
(
p_input
->
p
->
i_stop
>
0
&&
p_input
->
p
->
i_time
>=
p_input
->
p
->
i_stop
)
||
(
p_input
->
p
->
i_run
>
0
&&
i_start_mdate
+
p_input
->
p
->
i_run
<
mdate
()
)
)
...
...
@@ -581,12 +580,7 @@ static void MainLoopDemux( input_thread_t *p_input, bool *pb_changed, bool *pb_d
}
if
(
i_ret
>
0
&&
p_input
->
p
->
i_slave
>
0
)
{
bool
b_demux_polled
;
SlaveDemux
(
p_input
,
&
b_demux_polled
);
*
pb_demux_polled
|=
b_demux_polled
;
}
SlaveDemux
(
p_input
);
}
static
int
MainLoopTryRepeat
(
input_thread_t
*
p_input
,
mtime_t
*
pi_start_mdate
)
...
...
@@ -685,7 +679,6 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
while
(
vlc_object_alive
(
p_input
)
&&
!
p_input
->
b_error
)
{
mtime_t
i_wakeup
=
-
1
;
bool
b_demux_polled
=
true
;
bool
b_paused
=
p_input
->
p
->
i_state
==
PAUSE_S
;
/* FIXME if p_input->p->i_state == PAUSE_S the access/access_demux
* is paused -> this may cause problem with some of them
...
...
@@ -699,8 +692,7 @@ static void MainLoop( input_thread_t *p_input, bool b_interactive )
{
bool
b_force_update
=
false
;
MainLoopDemux
(
p_input
,
&
b_force_update
,
&
b_demux_polled
,
i_start_mdate
);
MainLoopDemux
(
p_input
,
&
b_force_update
,
i_start_mdate
);
i_wakeup
=
es_out_GetWakeup
(
p_input
->
p
->
p_es_out
);
if
(
b_force_update
)
...
...
@@ -2536,12 +2528,11 @@ static void InputSourceMeta( input_thread_t *p_input,
}
static
void
SlaveDemux
(
input_thread_t
*
p_input
,
bool
*
pb_demux_polled
)
static
void
SlaveDemux
(
input_thread_t
*
p_input
)
{
int64_t
i_time
;
int
i
;
*
pb_demux_polled
=
false
;
if
(
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
DEMUX_GET_TIME
,
&
i_time
)
)
{
msg_Err
(
p_input
,
"demux doesn't like DEMUX_GET_TIME"
);
...
...
@@ -2556,12 +2547,6 @@ static void SlaveDemux( input_thread_t *p_input, bool *pb_demux_polled )
if
(
in
->
b_eof
)
continue
;
const
bool
b_demux_polled
=
in
->
p_demux
->
pf_demux
!=
NULL
;
if
(
!
b_demux_polled
)
continue
;
*
pb_demux_polled
=
true
;
/* Call demux_Demux until we have read enough data */
if
(
demux_Control
(
in
->
p_demux
,
DEMUX_SET_NEXT_DEMUX_TIME
,
i_time
)
)
{
...
...
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