[vlc-devel] commit: macosx: Fix update downloader (Derk-Jan Hartman )

git version control git at videolan.org
Thu Oct 2 15:41:37 CEST 2008


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Thu Oct  2 15:38:19 2008 +0200| [0c53675c1154f6f6c377b5ce610557c8e46ad26f] | committer: Derk-Jan Hartman 

macosx: Fix update downloader

(update_ requires a dir argument with the path sep already appended)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c53675c1154f6f6c377b5ce610557c8e46ad26f
---

 modules/gui/macosx/update.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/update.m b/modules/gui/macosx/update.m
index 1cb018d..cb52484 100644
--- a/modules/gui/macosx/update.m
+++ b/modules/gui/macosx/update.m
@@ -218,7 +218,8 @@ static void updateCallback( void * p_data, bool b_success )
 - (void)performDownload:(NSString *)path
 {
     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-    update_Download( p_u, [path UTF8String] );
+    NSString *local = [NSString stringWithFormat: @"%@/", path];
+    update_Download( p_u, [local UTF8String] );
     [o_btn_DownloadNow setEnabled: NO];
     [o_update_window orderOut: self];
     update_WaitDownload( p_u );




More information about the vlc-devel mailing list