Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
ce8e113f
Commit
ce8e113f
authored
Sep 01, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: add missing error check for decoder_UpdateVideoFormat
parent
7db77e96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/codec/omxil/mediacodec.c
modules/codec/omxil/mediacodec.c
+8
-1
No files found.
modules/codec/omxil/mediacodec.c
View file @
ce8e113f
...
@@ -401,7 +401,14 @@ static int StartMediaCodec(decoder_t *p_dec)
...
@@ -401,7 +401,14 @@ static int StartMediaCodec(decoder_t *p_dec)
p_dec
->
fmt_out
.
video
.
i_width
=
p_sys
->
u
.
video
.
i_width
;
p_dec
->
fmt_out
.
video
.
i_width
=
p_sys
->
u
.
video
.
i_width
;
p_dec
->
fmt_out
.
video
.
i_height
=
p_sys
->
u
.
video
.
i_height
;
p_dec
->
fmt_out
.
video
.
i_height
=
p_sys
->
u
.
video
.
i_height
;
p_dec
->
fmt_out
.
i_codec
=
VLC_CODEC_ANDROID_OPAQUE
;
p_dec
->
fmt_out
.
i_codec
=
VLC_CODEC_ANDROID_OPAQUE
;
decoder_UpdateVideoFormat
(
p_dec
);
if
(
decoder_UpdateVideoFormat
(
p_dec
)
!=
0
)
{
msg_Err
(
p_dec
,
"Opaque Vout request failed: "
"fallback to non opaque"
);
AWindowHandler_destroy
(
p_sys
->
u
.
video
.
p_awh
);
p_sys
->
u
.
video
.
p_awh
=
NULL
;
}
}
}
}
}
args
.
video
.
p_awh
=
p_sys
->
u
.
video
.
p_awh
;
args
.
video
.
p_awh
=
p_sys
->
u
.
video
.
p_awh
;
...
...
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