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
b257a2cf
Commit
b257a2cf
authored
Dec 14, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: rename b_error to b_aborted
parent
b69e1571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
modules/codec/omxil/mediacodec.c
modules/codec/omxil/mediacodec.c
+12
-12
No files found.
modules/codec/omxil/mediacodec.c
View file @
b257a2cf
...
@@ -114,7 +114,7 @@ struct decoder_sys_t
...
@@ -114,7 +114,7 @@ struct decoder_sys_t
bool
b_output_ready
;
bool
b_output_ready
;
/* If true, the first input block was successfully dequeued */
/* If true, the first input block was successfully dequeued */
bool
b_input_dequeued
;
bool
b_input_dequeued
;
bool
b_
error
;
bool
b_
aborted
;
/* TODO: remove. See jni_EventHardwareAccelerationError */
/* TODO: remove. See jni_EventHardwareAccelerationError */
bool
b_error_signaled
;
bool
b_error_signaled
;
...
@@ -718,9 +718,9 @@ static void AbortDecoderLocked(decoder_t *p_dec)
...
@@ -718,9 +718,9 @@ static void AbortDecoderLocked(decoder_t *p_dec)
{
{
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
if
(
!
p_sys
->
b_
error
)
if
(
!
p_sys
->
b_
aborted
)
{
{
p_sys
->
b_
error
=
true
;
p_sys
->
b_
aborted
=
true
;
vlc_cancel
(
p_sys
->
out_thread
);
vlc_cancel
(
p_sys
->
out_thread
);
}
}
}
}
...
@@ -1134,7 +1134,7 @@ static void DecodeFlushLocked(decoder_t *p_dec)
...
@@ -1134,7 +1134,7 @@ static void DecodeFlushLocked(decoder_t *p_dec)
vlc_cond_broadcast
(
&
p_sys
->
cond
);
vlc_cond_broadcast
(
&
p_sys
->
cond
);
while
(
!
p_sys
->
b_
error
&&
p_sys
->
b_flush_out
)
while
(
!
p_sys
->
b_
aborted
&&
p_sys
->
b_flush_out
)
vlc_cond_wait
(
&
p_sys
->
dec_cond
,
&
p_sys
->
lock
);
vlc_cond_wait
(
&
p_sys
->
dec_cond
,
&
p_sys
->
lock
);
}
}
...
@@ -1245,7 +1245,7 @@ static void *OutThread(void *data)
...
@@ -1245,7 +1245,7 @@ static void *OutThread(void *data)
msg_Warn
(
p_dec
,
"OutThread stopped"
);
msg_Warn
(
p_dec
,
"OutThread stopped"
);
/* Signal DecoderFlush that the output thread aborted */
/* Signal DecoderFlush that the output thread aborted */
p_sys
->
b_
error
=
true
;
p_sys
->
b_
aborted
=
true
;
vlc_cond_signal
(
&
p_sys
->
dec_cond
);
vlc_cond_signal
(
&
p_sys
->
dec_cond
);
vlc_cleanup_pop
();
vlc_cleanup_pop
();
...
@@ -1279,7 +1279,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
...
@@ -1279,7 +1279,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
if
(
p_sys
->
b_
error
)
if
(
p_sys
->
b_
aborted
)
goto
end
;
goto
end
;
if
(
pp_block
!=
NULL
)
if
(
pp_block
!=
NULL
)
...
@@ -1289,7 +1289,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
...
@@ -1289,7 +1289,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
if
(
p_block
->
i_flags
&
(
BLOCK_FLAG_DISCONTINUITY
|
BLOCK_FLAG_CORRUPTED
))
if
(
p_block
->
i_flags
&
(
BLOCK_FLAG_DISCONTINUITY
|
BLOCK_FLAG_CORRUPTED
))
{
{
DecodeFlushLocked
(
p_dec
);
DecodeFlushLocked
(
p_dec
);
if
(
p_sys
->
b_
error
)
if
(
p_sys
->
b_
aborted
)
goto
end
;
goto
end
;
if
(
p_block
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
if
(
p_block
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
goto
end
;
goto
end
;
...
@@ -1304,7 +1304,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
...
@@ -1304,7 +1304,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
/* Flush before restart to unblock OutThread */
/* Flush before restart to unblock OutThread */
DecodeFlushLocked
(
p_dec
);
DecodeFlushLocked
(
p_dec
);
if
(
p_sys
->
b_
error
)
if
(
p_sys
->
b_
aborted
)
goto
end
;
goto
end
;
if
(
i_flags
&
NEWBLOCK_FLAG_RESTART
)
if
(
i_flags
&
NEWBLOCK_FLAG_RESTART
)
...
@@ -1361,7 +1361,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
...
@@ -1361,7 +1361,7 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
INT64_C
(
1000000
)
:
-
1
);
INT64_C
(
1000000
)
:
-
1
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
if
(
p_sys
->
b_
error
)
if
(
p_sys
->
b_
aborted
)
goto
end
;
goto
end
;
bool
b_config
=
false
;
bool
b_config
=
false
;
...
@@ -1452,10 +1452,10 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
...
@@ -1452,10 +1452,10 @@ static int DecodeCommon(decoder_t *p_dec, block_t **pp_block)
* frames. Use a timeout here since we can't know if all decoders will
* frames. Use a timeout here since we can't know if all decoders will
* behave correctly. */
* behave correctly. */
mtime_t
deadline
=
mdate
()
+
INT64_C
(
1000000
);
mtime_t
deadline
=
mdate
()
+
INT64_C
(
1000000
);
while
(
!
p_sys
->
b_
error
while
(
!
p_sys
->
b_
aborted
&&
vlc_cond_timedwait
(
&
p_sys
->
dec_cond
,
&
p_sys
->
lock
,
deadline
)
==
0
);
&&
vlc_cond_timedwait
(
&
p_sys
->
dec_cond
,
&
p_sys
->
lock
,
deadline
)
==
0
);
if
(
!
p_sys
->
b_
error
)
if
(
!
p_sys
->
b_
aborted
)
msg_Err
(
p_dec
,
"OutThread timed out"
);
msg_Err
(
p_dec
,
"OutThread timed out"
);
/* In case pf_decode is called again (it shouldn't happen) */
/* In case pf_decode is called again (it shouldn't happen) */
...
@@ -1471,7 +1471,7 @@ end:
...
@@ -1471,7 +1471,7 @@ end:
block_Release
(
*
pp_block
);
block_Release
(
*
pp_block
);
*
pp_block
=
NULL
;
*
pp_block
=
NULL
;
}
}
if
(
p_sys
->
b_
error
)
if
(
p_sys
->
b_
aborted
)
{
{
if
(
!
p_sys
->
b_error_signaled
)
{
if
(
!
p_sys
->
b_error_signaled
)
{
/* Signal the error to the Java.
/* Signal the error to the Java.
...
...
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