Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f2f389ba
Commit
f2f389ba
authored
Jul 06, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Remove a weird already_locked bool. (that removes a runtime warning from NSRecursiveLock.)
parent
d6725429
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
modules/gui/macosx/embeddedwindow.h
modules/gui/macosx/embeddedwindow.h
+0
-1
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/embeddedwindow.m
+0
-23
No files found.
modules/gui/macosx/embeddedwindow.h
View file @
f2f389ba
...
...
@@ -48,7 +48,6 @@
NSView
*
o_temp_view
;
/* set to yes if we are fullscreen and all animations are over */
BOOL
b_fullscreen
;
BOOL
b_animation_lock_alreadylocked
;
NSRecursiveLock
*
o_animation_lock
;
}
...
...
modules/gui/macosx/embeddedwindow.m
View file @
f2f389ba
...
...
@@ -69,11 +69,6 @@
/* Not fullscreen when we wake up */
[
o_btn_fullscreen
setState
:
NO
];
b_fullscreen
=
NO
;
/* Use a recursive lock to be able to trigger enter/leavefullscreen
* in middle of an animation, providing that the enter/leave functions
* are called from the same thread */
o_animation_lock
=
[[
NSRecursiveLock
alloc
]
init
];
b_animation_lock_alreadylocked
=
NO
;
}
-
(
void
)
controlTintChanged
...
...
@@ -272,7 +267,6 @@
{
/* We were already fullscreen nothing to do when NSAnimation
* is not supported */
b_animation_lock_alreadylocked
=
NO
;
[
self
unlockFullscreenAnimation
];
return
;
}
...
...
@@ -282,7 +276,6 @@
{
/* Make sure we are hidden */
[
super
orderOut
:
self
];
b_animation_lock_alreadylocked
=
NO
;
[
self
unlockFullscreenAnimation
];
return
;
}
...
...
@@ -298,13 +291,6 @@
[
o_fullscreen_anim2
release
];
}
/* This is a recursive lock. If we are already in the middle of an animation we
* unlock it. We don't add an extra locking here, because enter/leavefullscreen
* are executed always in the same thread */
if
(
b_animation_lock_alreadylocked
)
[
self
unlockFullscreenAnimation
];
b_animation_lock_alreadylocked
=
YES
;
if
([
screen
isMainScreen
])
SetSystemUIMode
(
kUIModeAllHidden
,
kUIOptionAutoShowMenuBar
);
...
...
@@ -380,7 +366,6 @@
/* Don't do anything if o_fullscreen_window is already closed */
if
(
!
o_fullscreen_window
)
{
b_animation_lock_alreadylocked
=
NO
;
[
self
unlockFullscreenAnimation
];
return
;
}
...
...
@@ -423,13 +408,6 @@
[
o_fullscreen_anim2
release
];
}
/* This is a recursive lock. If we are already in the middle of an animation we
* unlock it. We don't add an extra locking here, because enter/leavefullscreen
* are executed always in the same thread */
if
(
b_animation_lock_alreadylocked
)
[
self
unlockFullscreenAnimation
];
b_animation_lock_alreadylocked
=
YES
;
frame
=
[[
o_temp_view
superview
]
convertRect
:
[
o_temp_view
frame
]
toView
:
nil
];
/* Convert to Window base coord */
frame
.
origin
.
x
+=
[
self
frame
].
origin
.
x
;
frame
.
origin
.
y
+=
[
self
frame
].
origin
.
y
;
...
...
@@ -486,7 +464,6 @@
[
o_fullscreen_window
release
];
o_fullscreen_window
=
nil
;
b_animation_lock_alreadylocked
=
NO
;
[
self
unlockFullscreenAnimation
];
}
...
...
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