X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fupdate.c;h=2c51ef90cfd9552e1adc641f6a26df3d16a5e4c6;hb=497b59e4fc525cca1fd422c0b5ece0672d4d8036;hp=51d6ecb0f8a4e3c376a673cf1f894ed263e3dc6e;hpb=e2a614c82b502ea6c3cdee7d0fc39cbb9627041e;p=vlc diff --git a/src/misc/update.c b/src/misc/update.c index 51d6ecb0f8..2c51ef90cf 100644 --- a/src/misc/update.c +++ b/src/misc/update.c @@ -1068,8 +1068,6 @@ void update_Delete( update_t *p_update ) { assert( p_update ); - vlc_mutex_lock( &p_update->lock ); - if( p_update->p_check ) { assert( !p_update->p_download ); @@ -1082,7 +1080,6 @@ void update_Delete( update_t *p_update ) vlc_thread_join( p_update->p_download ); } - vlc_mutex_unlock( &p_update->lock ); vlc_mutex_destroy( &p_update->lock ); free( p_update->release.psz_url ); @@ -1579,9 +1576,9 @@ static void update_DownloadReal( update_download_thread_t *p_udt ) { utf8_unlink( psz_destfile ); - intf_UserFatal( p_udt, true, _("File can not be verified"), + intf_UserFatal( p_udt, true, _("File could not be verified"), _("It was not possible to download a cryptographic signature for " - "downloaded file \"%s\", and so VLC deleted it."), + "the downloaded file \"%s\". Thus, it was deleted."), psz_destfile ); msg_Err( p_udt, "Couldn't download signature of downloaded file" ); goto end; @@ -1592,9 +1589,9 @@ static void update_DownloadReal( update_download_thread_t *p_udt ) utf8_unlink( psz_destfile ); msg_Err( p_udt, "Invalid signature issuer" ); intf_UserFatal( p_udt, true, _("Invalid signature"), - _("The cryptographic signature for downloaded file \"%s\" was " - "invalid and couldn't be used to securely verify it, and so " - "VLC deleted it."), + _("The cryptographic signature for the downloaded file \"%s\" was " + "invalid and could not be used to securely verify it. Thus, the " + "file was deleted."), psz_destfile ); goto end; } @@ -1604,9 +1601,9 @@ static void update_DownloadReal( update_download_thread_t *p_udt ) utf8_unlink( psz_destfile ); msg_Err( p_udt, "Invalid signature type" ); intf_UserFatal( p_udt, true, _("Invalid signature"), - _("The cryptographic signature for downloaded file \"%s\" was " - "invalid and couldn't be used to securely verify it, and so " - "VLC deleted it."), + _("The cryptographic signature for the downloaded file \"%s\" was " + "invalid and could not be used to securely verify it. Thus, the " + "file was deleted."), psz_destfile ); goto end; } @@ -1617,8 +1614,8 @@ static void update_DownloadReal( update_download_thread_t *p_udt ) msg_Err( p_udt, "Unable to hash %s", psz_destfile ); utf8_unlink( psz_destfile ); intf_UserFatal( p_udt, true, _("File not verifiable"), - _("It was not possible to securely verify downloaded file \"%s\", " - "and so VLC deleted it."), + _("It was not possible to securely verify the downloaded file" + " \"%s\". Thus, it was VLC deleted."), psz_destfile ); goto end; @@ -1629,7 +1626,7 @@ static void update_DownloadReal( update_download_thread_t *p_udt ) { utf8_unlink( psz_destfile ); intf_UserFatal( p_udt, true, _("File corrupted"), - _("Downloaded file \"%s\" was corrupted, and so VLC deleted it."), + _("Downloaded file \"%s\" was corrupted. Thus, it was deleted."), psz_destfile ); msg_Err( p_udt, "Bad SHA1 hash for %s", psz_destfile ); free( p_hash ); @@ -1641,7 +1638,7 @@ static void update_DownloadReal( update_download_thread_t *p_udt ) { utf8_unlink( psz_destfile ); intf_UserFatal( p_udt, true, _("File corrupted"), - _("Downloaded file \"%s\" was corrupted, and so VLC deleted it."), + _("Downloaded file \"%s\" was corrupted. Thus, it was deleted."), psz_destfile ); msg_Err( p_udt, "BAD SIGNATURE for %s", psz_destfile ); free( p_hash );