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
2aa0ad9c
Commit
2aa0ad9c
authored
May 06, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: avoid index out of bound exceptions in some cases
parent
a159d154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+4
-2
No files found.
modules/gui/macosx/MainWindow.m
View file @
2aa0ad9c
...
...
@@ -1835,7 +1835,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
-
(
void
)
hasBecomeFullscreen
{
[
o_fullscreen_window
makeFirstResponder
:
[[
o_video_view
subviews
]
objectAtIndex
:
0
]];
if
(
[[
o_video_view
subviews
]
count
]
>
0
)
[
o_fullscreen_window
makeFirstResponder
:
[[
o_video_view
subviews
]
objectAtIndex
:
0
]];
[
o_fullscreen_window
makeKeyWindow
];
[
o_fullscreen_window
setAcceptsMouseMovedEvents
:
TRUE
];
...
...
@@ -1996,7 +1997,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[
o_temp_view
superview
]
replaceSubview
:
o_temp_view
with
:
o_video_view
];
[
o_video_view
release
];
[
o_video_view
setFrame
:[
o_temp_view
frame
]];
[[
o_video_view
window
]
makeFirstResponder
:
[[
o_video_view
subviews
]
objectAtIndex
:
0
]];
if
(
[[
o_video_view
subviews
]
count
]
>
0
)
[[
o_video_view
window
]
makeFirstResponder
:
[[
o_video_view
subviews
]
objectAtIndex
:
0
]];
if
(
[[
o_video_view
window
]
isVisible
]
)
{
if
(
!
b_nonembedded
)
...
...
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