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
378c8027
Commit
378c8027
authored
Jul 21, 2010
by
Juho Vähä-Herttua
Committed by
Jean-Baptiste Kempf
Jul 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx: Fix a bug where glView frame doesn't get set if NSView parent is used
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
c422b773
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/video_output/macosx.m
modules/video_output/macosx.m
+9
-1
No files found.
modules/video_output/macosx.m
View file @
378c8027
...
@@ -150,7 +150,7 @@ static int Open(vlc_object_t *this)
...
@@ -150,7 +150,7 @@ static int Open(vlc_object_t *this)
{
{
NSView
*
parentView
=
container
;
NSView
*
parentView
=
container
;
[
parentView
performSelectorOnMainThread
:
@selector
(
addSubview
:)
withObject
:
sys
->
glView
waitUntilDone
:
NO
];
[
parentView
performSelectorOnMainThread
:
@selector
(
addSubview
:)
withObject
:
sys
->
glView
waitUntilDone
:
NO
];
[
sys
->
glView
performSelectorOnMainThread
:
@selector
(
setFrame
:)
withObject
:
[
NSValue
valueWithRect
:[
parentView
bounds
]]
waitUntilDone
:
NO
];
[
sys
->
glView
performSelectorOnMainThread
:
@selector
(
setFrame
WithValue
:)
withObject
:
[
NSValue
valueWithRect
:[
parentView
bounds
]]
waitUntilDone
:
NO
];
}
}
else
else
{
{
...
@@ -374,6 +374,14 @@ static void OpenglSwap(vout_opengl_t *gl)
...
@@ -374,6 +374,14 @@ static void OpenglSwap(vout_opengl_t *gl)
return
self
;
return
self
;
}
}
/**
* Gets called by the Open() method.
*/
-
setFrameWithValue
:(
NSValue
*
)
value
{
[
self
setFrame
:[
value
rectValue
]];
}
/**
/**
* Gets called by the Close and Open methods.
* Gets called by the Close and Open methods.
* (Non main thread).
* (Non main thread).
...
...
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