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
5438da27
Commit
5438da27
authored
Nov 27, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: merge DecoderError into DecoderProcess
parent
54afb104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
src/input/decoder.c
src/input/decoder.c
+9
-18
No files found.
src/input/decoder.c
View file @
5438da27
...
...
@@ -60,7 +60,6 @@ static void DeleteDecoder( decoder_t * );
static
void
*
DecoderThread
(
void
*
);
static
void
DecoderProcess
(
decoder_t
*
,
block_t
*
);
static
void
DecoderError
(
decoder_t
*
p_dec
,
block_t
*
p_block
);
static
void
DecoderOutputChangePause
(
decoder_t
*
,
bool
b_paused
,
mtime_t
i_date
);
static
void
DecoderFlush
(
decoder_t
*
);
static
void
DecoderSignalBuffering
(
decoder_t
*
,
bool
);
...
...
@@ -943,10 +942,7 @@ static void *DecoderThread( void *p_data )
p_block
=
NULL
;
}
if
(
p_dec
->
b_error
)
DecoderError
(
p_dec
,
p_block
);
else
DecoderProcess
(
p_dec
,
p_block
);
DecoderProcess
(
p_dec
,
p_block
);
vlc_restorecancel
(
canc
);
}
...
...
@@ -1993,6 +1989,13 @@ static void DecoderProcess( decoder_t *p_dec, block_t *p_block )
decoder_owner_sys_t
*
p_owner
=
(
decoder_owner_sys_t
*
)
p_dec
->
p_owner
;
const
bool
b_flush_request
=
p_block
&&
(
p_block
->
i_flags
&
BLOCK_FLAG_CORE_FLUSH
);
if
(
p_dec
->
b_error
)
{
if
(
p_block
)
block_Release
(
p_block
);
goto
flush
;
}
if
(
p_block
&&
p_block
->
i_buffer
<=
0
)
{
assert
(
!
b_flush_request
);
...
...
@@ -2043,23 +2046,11 @@ static void DecoderProcess( decoder_t *p_dec, block_t *p_block )
}
/* */
flush:
if
(
b_flush_request
)
DecoderProcessOnFlush
(
p_dec
);
}
static
void
DecoderError
(
decoder_t
*
p_dec
,
block_t
*
p_block
)
{
const
bool
b_flush_request
=
p_block
&&
(
p_block
->
i_flags
&
BLOCK_FLAG_CORE_FLUSH
);
/* */
if
(
p_block
)
block_Release
(
p_block
);
if
(
b_flush_request
)
DecoderProcessOnFlush
(
p_dec
);
}
/**
* Destroys a decoder object
*
...
...
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