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
a85849f9
Commit
a85849f9
authored
Mar 03, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mac OS X gui: Fix dead lock when exiting. As a side effect VLC.app exit is really fast.
parent
5163be8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4061 additions
and
4090 deletions
+4061
-4090
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
+2
-2
extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
...OSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
+4055
-4070
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+3
-17
No files found.
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
View file @
a85849f9
...
...
@@ -25,10 +25,10 @@
<array/>
<key>
IBOpenObjects
</key>
<array>
<integer>
21
</integer>
<integer>
2730
</integer>
<integer>
29
</integer>
<integer>
2769
</integer>
<integer>
21
</integer>
<integer>
2730
</integer>
</array>
<key>
IBSystem Version
</key>
<string>
8L2127
</string>
...
...
extras/MacOSX/Resources/English.lproj/MainMenu.nib/keyedobjects.nib
View file @
a85849f9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
modules/gui/macosx/intf.h
View file @
a85849f9
...
...
@@ -307,7 +307,7 @@ struct intf_sys_t
-
(
id
)
getMainIntfPgbar
;
-
(
id
)
getControllerWindow
;
-
(
id
)
getVoutMenu
;
-
(
void
)
terminate
;
-
(
void
)
applicationWillTerminate
:(
NSNotification
*
)
notification
;
-
(
NSString
*
)
localizedString
:(
char
*
)
psz
;
-
(
char
*
)
delocalizeString
:(
NSString
*
)
psz
;
-
(
NSString
*
)
wrapString
:
(
NSString
*
)
o_in_string
toWidth
:
(
int
)
i_width
;
...
...
modules/gui/macosx/intf.m
View file @
a85849f9
...
...
@@ -114,7 +114,6 @@ static void Run( intf_thread_t *p_intf )
[[
VLCMain
sharedInstance
]
setIntf
:
p_intf
];
[
NSBundle
loadNibNamed
:
@"MainMenu"
owner
:
NSApp
];
[
NSApp
run
];
[[
VLCMain
sharedInstance
]
terminate
];
}
int
ExecuteOnMainThread
(
id
target
,
SEL
sel
,
void
*
p_arg
)
...
...
@@ -352,7 +351,7 @@ static VLCMain *_o_sharedMainInstance = nil;
o_remote
=
[[
AppleRemote
alloc
]
init
];
[
o_remote
setClickCountEnabledButtons
:
kRemoteButtonPlay
];
[
o_remote
setDelegate
:
_o_sharedMainInstance
];
return
_o_sharedMainInstance
;
}
...
...
@@ -1530,12 +1529,12 @@ static VLCMain *_o_sharedMainInstance = nil;
#undef p_input
}
-
(
void
)
terminate
-
(
void
)
applicationWillTerminate
:(
NSNotification
*
)
notification
{
playlist_t
*
p_playlist
;
vout_thread_t
*
p_vout
;
int
returnedValue
=
0
;
#define p_input p_intf->p_sys->p_input
if
(
p_input
)
{
...
...
@@ -1549,19 +1548,6 @@ static VLCMain *_o_sharedMainInstance = nil;
playlist_Stop
(
p_playlist
);
vlc_object_release
(
p_playlist
);
/* FIXME - Wait here until all vouts are terminated because
libvlc's VLC_CleanUp destroys interfaces before vouts, which isn't
good on OS X. We definitly need a cleaner way to handle this,
but this may hopefully be good enough for now.
-- titer 2003/11/22 */
while
(
(
p_vout
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
)
)
)
{
vlc_object_release
(
p_vout
);
msleep
(
100000
);
}
msleep
(
500000
);
/* make sure that the current volume is saved */
config_PutInt
(
p_intf
->
p_libvlc
,
"volume"
,
i_lastShownVolume
);
returnedValue
=
config_SaveConfigFile
(
p_intf
->
p_libvlc
,
"main"
);
...
...
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