Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
220a9ee4
Commit
220a9ee4
authored
Feb 15, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX GUI: move single termination variable where it's used
Use boolean for those variables
parent
a12214d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+4
-3
No files found.
modules/gui/macosx/intf.m
View file @
220a9ee4
...
@@ -188,7 +188,6 @@ void WindowClose( vout_window_t *p_wnd )
...
@@ -188,7 +188,6 @@ void WindowClose( vout_window_t *p_wnd )
* Run: main loop
* Run: main loop
*****************************************************************************/
*****************************************************************************/
static
NSLock
*
o_appLock
=
nil
;
// controls access to f_appExit
static
NSLock
*
o_appLock
=
nil
;
// controls access to f_appExit
static
int
f_appExit
=
0
;
// set to 1 when application termination signaled
static
void
Run
(
intf_thread_t
*
p_intf
)
static
void
Run
(
intf_thread_t
*
p_intf
)
{
{
...
@@ -683,10 +682,12 @@ static VLCMain *_o_sharedMainInstance = nil;
...
@@ -683,10 +682,12 @@ static VLCMain *_o_sharedMainInstance = nil;
/* don't allow a double termination call. If the user has
/* don't allow a double termination call. If the user has
* already invoked the quit then simply return this time. */
* already invoked the quit then simply return this time. */
int
isTerminating
=
false
;
static
bool
f_appExit
=
false
;
bool
isTerminating
;
[
o_appLock
lock
];
[
o_appLock
lock
];
isTerminating
=
(
f_appExit
++
>
0
?
1
:
0
);
isTerminating
=
f_appExit
;
f_appExit
=
true
;
[
o_appLock
unlock
];
[
o_appLock
unlock
];
if
(
isTerminating
)
if
(
isTerminating
)
...
...
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