X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmisc%2Fupdate.c;h=b27d26017876d4f34e0b364248d56253d4b47a36;hb=c04668ad5effb61eda668b293aa9aa8e161d369e;hp=4225226505e9851b40990b4fc54f0e11d94a1390;hpb=c83becf565eee9c5c867a2455fd203b5373ba166;p=vlc diff --git a/src/misc/update.c b/src/misc/update.c index 4225226505..b27d260178 100644 --- a/src/misc/update.c +++ b/src/misc/update.c @@ -78,12 +78,6 @@ # define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-ce" #elif defined( WIN32 ) # define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-win-x86" -#elif defined( __APPLE__ ) -# if defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ ) -# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-mac-ppc" -# else -# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-mac-x86" -# endif #elif defined( SYS_BEOS ) # define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status-beos-x86" #else @@ -278,8 +272,6 @@ static bool GetUpdateFile( update_t *p_update ) strncpy( p_update->release.psz_desc, psz_update_data_parser, i_len ); p_update->release.psz_desc[i_len] = '\0'; - printf("desc %s\n", p_update->release.psz_desc); - /* Now that we know the status is valid, we must download its signature * to authenticate it */ signature_packet_t sign; @@ -539,7 +531,7 @@ static void* update_DownloadReal( vlc_object_t *p_this ) long int l_size; long int l_downloaded = 0; float f_progress; - char *psz_status = NULL; + char *psz_status; char *psz_downloaded = NULL; char *psz_size = NULL; char *psz_destfile = NULL; @@ -640,13 +632,8 @@ static void* update_DownloadReal( vlc_object_t *p_this ) if( vlc_object_alive( p_udt ) && !dialog_ProgressCancelled( p_progress ) ) { - if( asprintf( &psz_status, _("%s\nDone %s (100.0%%)"), - p_update->release.psz_url, psz_size ) != -1 ) - { - dialog_ProgressDestroy( p_progress ); - p_progress = NULL; - free( psz_status ); - } + dialog_ProgressDestroy( p_progress ); + p_progress = NULL; } else {