Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
dcaafd94
Commit
dcaafd94
authored
Sep 07, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not uselessly duplicated code (input)
parent
51540587
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
34 deletions
+17
-34
src/input/input.c
src/input/input.c
+17
-34
No files found.
src/input/input.c
View file @
dcaafd94
...
...
@@ -510,23 +510,6 @@ static void* Run( vlc_object_t *p_this )
MainLoop
(
p_input
);
if
(
!
p_input
->
b_eof
&&
!
p_input
->
b_error
&&
p_input
->
p
->
input
.
b_eof
)
{
/* We have finish to demux data but not to play them */
while
(
!
p_input
->
b_die
)
{
if
(
input_EsOutDecodersEmpty
(
p_input
->
p
->
p_es_out
)
)
break
;
msg_Dbg
(
p_input
,
"waiting decoder fifos to empty"
);
msleep
(
INPUT_IDLE_SLEEP
);
}
/* We have finished */
input_ChangeState
(
p_input
,
END_S
);
}
/* Wait until we are asked to die */
if
(
!
p_input
->
b_die
)
{
...
...
@@ -557,23 +540,6 @@ static void* RunAndDestroy( vlc_object_t *p_this )
MainLoop
(
p_input
);
if
(
!
p_input
->
b_eof
&&
!
p_input
->
b_error
&&
p_input
->
p
->
input
.
b_eof
)
{
/* We have finished demuxing data but not playing it */
while
(
!
p_input
->
b_die
)
{
if
(
input_EsOutDecodersEmpty
(
p_input
->
p
->
p_es_out
)
)
break
;
msg_Dbg
(
p_input
,
"waiting decoder fifos to empty"
);
msleep
(
INPUT_IDLE_SLEEP
);
}
/* We have finished */
input_ChangeState
(
p_input
,
END_S
);
}
/* Clean up */
End
(
p_input
);
...
...
@@ -759,6 +725,23 @@ static void MainLoop( input_thread_t *p_input )
}
}
}
if
(
!
p_input
->
b_eof
&&
!
p_input
->
b_error
&&
p_input
->
p
->
input
.
b_eof
)
{
/* We have finish to demux data but not to play them */
while
(
!
p_input
->
b_die
)
{
if
(
input_EsOutDecodersEmpty
(
p_input
->
p
->
p_es_out
)
)
break
;
msg_Dbg
(
p_input
,
"waiting decoder fifos to empty"
);
msleep
(
INPUT_IDLE_SLEEP
);
}
/* We have finished */
input_ChangeState
(
p_input
,
END_S
);
}
}
static
void
InitStatistics
(
input_thread_t
*
p_input
)
...
...
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