# 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
# define UPDATE_VLC_STATUS_URL "http://update.videolan.org/vlc/status"
#endif
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;
p_uct->pf_callback = pf_callback;
p_uct->p_data = p_data;
- vlc_thread_create( p_uct, "check for update", update_CheckReal,
- VLC_THREAD_PRIORITY_LOW );
+ vlc_thread_create( p_uct, update_CheckReal, VLC_THREAD_PRIORITY_LOW );
}
void* update_CheckReal( vlc_object_t* p_this )
p_update->p_download = p_udt;
p_udt->psz_destdir = psz_destdir ? strdup( psz_destdir ) : NULL;
- vlc_thread_create( p_udt, "download update", update_DownloadReal,
- VLC_THREAD_PRIORITY_LOW );
+ vlc_thread_create( p_udt, update_DownloadReal, VLC_THREAD_PRIORITY_LOW );
}
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;
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
{
{
wchar_t psz_wdestfile[MAX_PATH];
MultiByteToWideChar( CP_UTF8, 0, psz_destfile, -1, psz_wdestfile, MAX_PATH );
- answer = ShellExecuteW( NULL, L"open", psz_wdestfile, NULL, NULL, SW_SHOW);
+ answer = (int)ShellExecuteW( NULL, L"open", psz_wdestfile, NULL, NULL, SW_SHOW);
if(answer > 32)
libvlc_Quit(p_this->p_libvlc);
}