Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
7e7f3bd7
Commit
7e7f3bd7
authored
Jun 15, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Make sure we do call update on main thread.
parent
c5132d35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/macosx/update.m
modules/gui/macosx/update.m
+5
-5
No files found.
modules/gui/macosx/update.m
View file @
7e7f3bd7
...
...
@@ -169,8 +169,6 @@ static VLCUpdate *_o_sharedInstance = nil;
-
(
void
)
setUpToDate
:(
BOOL
)
uptodate
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
if
(
uptodate
)
{
[
o_fld_releaseNote
setString
:
@""
];
...
...
@@ -192,13 +190,15 @@ static VLCUpdate *_o_sharedInstance = nil;
[
o_update_window
displayIfNeeded
];
[
o_update_window
makeKeyAndOrderFront
:
self
];
}
[
pool
release
];
}
static
void
updateCallback
(
void
*
p_data
,
bool
b_success
)
{
[(
id
)
p_data
setUpToDate
:
!
b_success
||
!
update_NeedUpgrade
(
((
VLCUpdate
*
)
p_data
)
->
p_u
)];
VLCUpdate
*
update
=
p_data
;
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
NSNumber
*
state
=
[
NSNumber
numberWithBool
:
!
b_success
||
!
update_NeedUpgrade
(
update
->
p_u
)];
[
update
performSelectorOnMainThread
:
@selector
(
setUpToDate
:)
withObject
:
state
waitUntilDone
:
YES
];
[
pool
release
];
}
-
(
void
)
checkForUpdate
...
...
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