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
ccd2a9a1
Commit
ccd2a9a1
authored
Jul 01, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout iOS: reliability improvements
parent
18b21461
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
modules/video_output/ios2.m
modules/video_output/ios2.m
+18
-13
No files found.
modules/video_output/ios2.m
View file @
ccd2a9a1
...
...
@@ -139,7 +139,10 @@ static int Open(vlc_object_t *this)
/* get the object we will draw into */
UIView
*
viewContainer
=
var_CreateGetAddress
(
vd
,
"drawable-nsobject"
);
if
(
!
viewContainer
)
if
(
unlikely
(
viewContainer
==
nil
))
goto
bailout
;
if
(
unlikely
(
!
[
viewContainer
respondsToSelector
:
@selector
(
isKindOfClass
:)]))
goto
bailout
;
if
(
!
[
viewContainer
isKindOfClass
:[
UIView
class
]])
...
...
@@ -400,6 +403,11 @@ static void OpenglESSwap(vlc_gl_t *gl)
if
(
!
self
)
return
nil
;
@synchronized
(
self
)
{
_appActive
=
([
UIApplication
sharedApplication
].
applicationState
==
UIApplicationStateActive
);
if
(
unlikely
(
!
_appActive
))
return
nil
;
CAEAGLLayer
*
layer
=
(
CAEAGLLayer
*
)
self
.
layer
;
layer
.
drawableProperties
=
[
NSDictionary
dictionaryWithObject
:
kEAGLColorFormatRGBA8
forKey
:
kEAGLDrawablePropertyColorFormat
];
layer
.
opaque
=
YES
;
...
...
@@ -412,9 +420,6 @@ static void OpenglESSwap(vlc_gl_t *gl)
[
self
performSelectorOnMainThread
:
@selector
(
createBuffers
)
withObject
:
nil
waitUntilDone
:
YES
];
[
self
performSelectorOnMainThread
:
@selector
(
reshape
)
withObject
:
nil
waitUntilDone
:
NO
];
[
self
setAutoresizingMask
:
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
];
@synchronized
(
self
)
{
_appActive
=
([
UIApplication
sharedApplication
].
applicationState
==
UIApplicationStateActive
);
}
return
self
;
...
...
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