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
4f486e17
Commit
4f486e17
authored
Mar 12, 2015
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Mar 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: fix rotation before API 21
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d7eb695d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/codec/omxil/android_mediacodec.c
modules/codec/omxil/android_mediacodec.c
+11
-0
No files found.
modules/codec/omxil/android_mediacodec.c
View file @
4f486e17
...
...
@@ -541,6 +541,17 @@ loopclean:
direct rendering should be disabled since no surface will be
attached to the JNI. */
p_sys
->
direct_rendering
=
jni_IsVideoPlayerActivityCreated
()
&&
var_InheritBool
(
p_dec
,
CFG_PREFIX
"dr"
);
/* There is no way to rotate the video using direct rendering (and using a
* SurfaceView) before API 21 (Lollipop). Therefore, we deactivate direct
* rendering if video doesn't have a normal rotation and if
* get_input_buffer method is not present (This method exists since API
* 21). */
if
(
p_sys
->
direct_rendering
&&
p_dec
->
fmt_in
.
video
.
orientation
!=
ORIENT_NORMAL
&&
!
p_sys
->
get_input_buffer
)
p_sys
->
direct_rendering
=
false
;
if
(
p_sys
->
direct_rendering
)
{
if
(
p_dec
->
fmt_in
.
video
.
orientation
!=
ORIENT_NORMAL
)
{
int
i_angle
;
...
...
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