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
e4385dbb
Commit
e4385dbb
authored
Jul 24, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: fix interlaced support detection
We need to know it before MediaCodec is started.
parent
47fa89f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
modules/codec/omxil/mediacodec_jni.c
modules/codec/omxil/mediacodec_jni.c
+3
-3
modules/codec/omxil/mediacodec_ndk.c
modules/codec/omxil/mediacodec_ndk.c
+2
-2
No files found.
modules/codec/omxil/mediacodec_jni.c
View file @
e4385dbb
...
...
@@ -416,7 +416,6 @@ static int Stop(mc_api *api)
JNIEnv
*
env
;
api
->
b_direct_rendering
=
false
;
api
->
b_support_interlaced
=
false
;
GET_ENV
();
...
...
@@ -574,9 +573,7 @@ static int Start(mc_api *api, AWindowHandler *p_awh, const char *psz_name,
jfields
.
buffer_info_ctor
);
p_sys
->
buffer_info
=
(
*
env
)
->
NewGlobalRef
(
env
,
jbuffer_info
);
/* Allow interlaced picture only after API 21 */
api
->
b_direct_rendering
=
b_direct_rendering
;
api
->
b_support_interlaced
=
jfields
.
get_input_buffer
&&
jfields
.
get_output_buffer
;
i_ret
=
VLC_SUCCESS
;
msg_Dbg
(
api
->
p_obj
,
"MediaCodec via JNI opened"
);
...
...
@@ -846,5 +843,8 @@ int MediaCodecJni_Init(mc_api *api)
api
->
get_out
=
GetOutput
;
api
->
release_out
=
ReleaseOutput
;
/* Allow interlaced picture only after API 21 */
api
->
b_support_interlaced
=
jfields
.
get_input_buffer
&&
jfields
.
get_output_buffer
;
return
VLC_SUCCESS
;
}
modules/codec/omxil/mediacodec_ndk.c
View file @
e4385dbb
...
...
@@ -272,7 +272,6 @@ static int Stop(mc_api *api)
mc_api_sys
*
p_sys
=
api
->
p_sys
;
api
->
b_direct_rendering
=
false
;
api
->
b_support_interlaced
=
false
;
if
(
p_sys
->
p_codec
)
{
...
...
@@ -341,7 +340,6 @@ static int Start(mc_api *api, AWindowHandler *p_awh, const char *psz_name,
api
->
b_started
=
true
;
api
->
b_direct_rendering
=
!!
p_anw
;
api
->
b_support_interlaced
=
true
;
i_ret
=
VLC_SUCCESS
;
msg_Dbg
(
api
->
p_obj
,
"MediaCodec via NDK opened"
);
...
...
@@ -523,5 +521,7 @@ int MediaCodecNdk_Init(mc_api *api)
api
->
put_in
=
PutInput
;
api
->
get_out
=
GetOutput
;
api
->
release_out
=
ReleaseOutput
;
api
->
b_support_interlaced
=
true
;
return
VLC_SUCCESS
;
}
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