Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
d1ef7469
Commit
d1ef7469
authored
Jan 13, 2014
by
Guillaume BIENKOWSKI
Browse files
Rename tool function.
parent
7d2ba108
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/videofilters/ioscapture.m
src/videofilters/ioscapture.m
+2
-2
No files found.
src/videofilters/ioscapture.m
View file @
d1ef7469
...
...
@@ -360,7 +360,7 @@ static void capture_queue_cleanup(void* p) {
return
0
;
}
static
AVCaptureVideoOrientation
deviceOrientation
2AVCaptureVideoOrientation
(
int
deviceOrientation
)
{
static
AVCaptureVideoOrientation
Angle
2AVCaptureVideoOrientation
(
int
deviceOrientation
)
{
switch
(
deviceOrientation
)
{
case
0
:
return
AVCaptureVideoOrientationPortrait
;
case
90
:
return
AVCaptureVideoOrientationLandscapeLeft
;
...
...
@@ -644,7 +644,7 @@ static int ioscapture_set_device_orientation_display (MSFilter *f, void *arg) {
if
(
thiz
!=
NULL
)
{
AVCaptureVideoPreviewLayer
*
previewLayer
=
(
AVCaptureVideoPreviewLayer
*
)
thiz
.
layer
;
if
([
previewLayer
isOrientationSupported
])
previewLayer
.
orientation
=
deviceOrientation
2AVCaptureVideoOrientation
(
*
(
int
*
)(
arg
));
previewLayer
.
orientation
=
Angle
2AVCaptureVideoOrientation
(
*
(
int
*
)(
arg
));
}
return
0
;
}
...
...
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