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
3110258d
Commit
3110258d
authored
Oct 22, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small code factorization
parent
02c79d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
src/input/decoder.c
src/input/decoder.c
+9
-12
No files found.
src/input/decoder.c
View file @
3110258d
...
...
@@ -722,26 +722,23 @@ static void *DecoderThread( vlc_object_t *p_this )
int
canc
=
vlc_savecancel
();
/* The decoder's main loop */
while
(
vlc_object_alive
(
p_dec
)
&&
!
p_dec
->
b_error
)
{
block_t
*
p_block
=
block_FifoGet
(
p_owner
->
p_fifo
);
DecoderSignalBuffering
(
p_dec
,
p_block
==
NULL
);
if
(
p_block
&&
DecoderProcess
(
p_dec
,
p_block
)
!=
VLC_SUCCESS
)
break
;
}
while
(
vlc_object_alive
(
p_dec
)
)
{
block_t
*
p_block
=
block_FifoGet
(
p_owner
->
p_fifo
);
DecoderSignalBuffering
(
p_dec
,
p_block
==
NULL
);
/* Trash all received PES packets */
if
(
p_block
)
block_Release
(
p_block
);
{
if
(
p_dec
->
b_error
)
{
/* Trash all received PES packets */
block_Release
(
p_block
);
}
else
if
(
DecoderProcess
(
p_dec
,
p_block
)
!=
VLC_SUCCESS
)
break
;
}
}
DecoderSignalBuffering
(
p_dec
,
true
);
/* We do it here because of the dll loader that wants close() in the
...
...
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