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
34792682
Commit
34792682
authored
Nov 25, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android_window: set i_angle for anw too
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
fb1e47e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
modules/video_output/android/android_window.c
modules/video_output/android/android_window.c
+16
-18
No files found.
modules/video_output/android/android_window.c
View file @
34792682
...
@@ -254,25 +254,24 @@ static android_window *AndroidWindow_New(vout_display_sys_t *sys,
...
@@ -254,25 +254,24 @@ static android_window *AndroidWindow_New(vout_display_sys_t *sys,
}
}
}
}
if
(
p_window
->
b_use_priv
)
{
switch
(
p_fmt
->
orientation
)
switch
(
p_fmt
->
orientation
)
{
{
case
ORIENT_ROTATED_90
:
case
ORIENT_ROTATED_90
:
p_window
->
i_angle
=
90
;
p_window
->
i_angle
=
90
;
break
;
break
;
case
ORIENT_ROTATED_180
:
case
ORIENT_ROTATED_180
:
p_window
->
i_angle
=
180
;
p_window
->
i_angle
=
180
;
break
;
break
;
case
ORIENT_ROTATED_270
:
case
ORIENT_ROTATED_270
:
p_window
->
i_angle
=
270
;
p_window
->
i_angle
=
270
;
break
;
break
;
default:
default:
p_window
->
i_angle
=
0
;
p_window
->
i_angle
=
0
;
}
}
if
(
p_window
->
b_use_priv
)
p_window
->
fmt
=
*
p_fmt
;
p_window
->
fmt
=
*
p_fmt
;
}
else
{
else
video_format_ApplyRotation
(
&
p_window
->
fmt
,
p_fmt
);
video_format_ApplyRotation
(
&
p_window
->
fmt
,
p_fmt
);
}
p_window
->
i_pic_count
=
1
;
p_window
->
i_pic_count
=
1
;
return
p_window
;
return
p_window
;
}
}
...
@@ -375,7 +374,6 @@ error:
...
@@ -375,7 +374,6 @@ error:
p_window
->
b_use_priv
=
false
;
p_window
->
b_use_priv
=
false
;
if
(
p_window
->
i_angle
!=
0
)
if
(
p_window
->
i_angle
!=
0
)
video_format_ApplyRotation
(
&
p_window
->
fmt
,
&
p_window
->
fmt
);
video_format_ApplyRotation
(
&
p_window
->
fmt
,
&
p_window
->
fmt
);
p_window
->
i_angle
=
0
;
return
-
1
;
return
-
1
;
}
}
...
...
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