Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
0c30240f
Commit
0c30240f
authored
Aug 26, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minimal_macosx: Make sure we actually kill the vout at some point.
parent
ac1ec6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
+11
-8
modules/gui/minimal_macosx/voutgl.m
modules/gui/minimal_macosx/voutgl.m
+1
-0
No files found.
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
View file @
0c30240f
...
...
@@ -80,6 +80,9 @@ void cocoaglvoutviewEnd( vout_thread_t * p_vout )
{
id
<
VLCOpenGLVoutEmbedding
>
o_cocoaglview_container
;
if
(
!
p_vout
->
p_sys
->
o_glview
)
return
;
msg_Dbg
(
p_vout
,
"Mac OS X Vout is closing"
);
var_Destroy
(
p_vout
,
"drawable-nsobject"
);
...
...
@@ -89,15 +92,15 @@ void cocoaglvoutviewEnd( vout_thread_t * p_vout )
[
p_vout
->
p_sys
->
o_glview
detachFromVout
];
msg_Dbg
(
p_vout
,
"Mac OS X Vout is closing"
);
/* Let the view go, _without_blocking_ */
[
p_vout
->
p_sys
->
o_glview
performSelectorOnMainThread
:
@selector
(
removeFromSuperview
)
withObject
:
NULL
waitUntilDone
:
NO
];
if
(
[(
id
)
o_cocoaglview_container
respondsToSelector
:
@selector
(
removeVoutSubview
:)]
)
[
o_cocoaglview_container
removeVoutSubview
:
p_vout
->
p_sys
->
o_glview
];
[
o_cocoaglview_container
performSelectorOnMainThread
:
@selector
(
removeVoutSubview
:)
withObject
:
p_vout
->
p_sys
->
o_glview
waitUntilDone
:
NO
];
[
p_vout
->
p_sys
->
o_glview
release
];
/* Let the view go and release it, _without_blocking_ */
[
p_vout
->
p_sys
->
o_glview
performSelectorOnMainThread
:
@selector
(
removeFromSuperviewAndRelease
)
withObject
:
nil
waitUntilDone
:
NO
];
p_vout
->
p_sys
->
o_glview
=
nil
;
[
p_vout
->
p_sys
->
o_pool
release
];
p_vout
->
p_sys
->
o_pool
=
nil
;
}
...
...
@@ -219,12 +222,12 @@ void cocoaglvoutviewUnlock( vout_thread_t * p_vout )
[
super
dealloc
];
}
-
(
void
)
removeFromSuperview
-
(
void
)
removeFromSuperview
AndRelease
{
[
super
removeFromSuperview
];
[
self
removeFromSuperview
];
[
self
release
];
}
-
(
id
)
initWithVout
:
(
vout_thread_t
*
)
vout
container
:
(
id
<
VLCOpenGLVoutEmbedding
>
)
aContainer
{
NSOpenGLPixelFormatAttribute
attribs
[]
=
...
...
modules/gui/minimal_macosx/voutgl.m
View file @
0c30240f
...
...
@@ -98,6 +98,7 @@ int OpenVideoGL ( vlc_object_t * p_this )
void CloseVideoGL ( vlc_object_t * p_this )
{
vout_thread_t * p_vout = (vout_thread_t *) p_this;
cocoaglvoutviewEnd( p_vout );
/* Clean up */
free( p_vout->p_sys );
}
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