[vlc-commits] macosx: fixed crash in CoreDialogs when closing the progress panel
Felix Paul Kühne
git at videolan.org
Wed Aug 22 15:26:55 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Aug 22 15:25:41 2012 +0200| [52576ea50e1cb5d2fbb3ceba958128dc81ed13b9] | committer: Felix Paul Kühne
macosx: fixed crash in CoreDialogs when closing the progress panel
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=52576ea50e1cb5d2fbb3ceba958128dc81ed13b9
---
modules/gui/macosx/coredialogs.m | 4 ++--
modules/gui/macosx/intf.m | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/coredialogs.m b/modules/gui/macosx/coredialogs.m
index dff1e46..7ac5d62 100644
--- a/modules/gui/macosx/coredialogs.m
+++ b/modules/gui/macosx/coredialogs.m
@@ -220,8 +220,8 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
-(void)destroyProgressPanel
{
b_progress_cancelled = YES;
- [o_prog_bar stopAnimation: self];
- [o_prog_win close];
+ [o_prog_bar performSelectorOnMainThread:@selector(stopAnimation:) withObject:self waitUntilDone:YES];
+ [o_prog_win performSelectorOnMainThread:@selector(close) withObject:nil waitUntilDone:YES];
}
-(IBAction)progDialogAction:(id)sender
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 079be5a..190b2ab 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -453,7 +453,7 @@ void updateProgressPanel (void *priv, const char *text, float value)
void destroyProgressPanel (void *priv)
{
NSAutoreleasePool *o_pool = [[NSAutoreleasePool alloc] init];
- [[[VLCMain sharedInstance] coreDialogProvider] performSelectorOnMainThread:@selector(destroyProgressPanel) withObject:nil waitUntilDone:NO];
+ [[[VLCMain sharedInstance] coreDialogProvider] destroyProgressPanel];
[o_pool release];
}
More information about the vlc-commits
mailing list