Changeset 77e3dfff905f1997f84bd3e3230fff4d9c5e1143
- Timestamp:
- 02/20/08 16:23:48
(7 months ago)
- Author:
- Rémi Duraffort <ivoire@videolan.org>
- git-committer:
- Rémi Duraffort <ivoire@videolan.org> 1203521028 +0000
- git-parent:
[32c110b6d880933ca60c1212693d10a12eb94c1f]
- git-author:
- Rémi Duraffort <ivoire@videolan.org> 1203521028 +0000
- Message:
Wrap and typo
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r32c110b |
r77e3dff |
|
| 884 | 884 | /** |
|---|
| 885 | 885 | * Get the update file and parse it |
|---|
| 886 | | * *p_update has to be locked when calling this function |
|---|
| | 886 | * p_update has to be locked when calling this function |
|---|
| 887 | 887 | * |
|---|
| 888 | 888 | * \param p_update pointer to update struct |
|---|
| … | … | |
| 1199 | 1199 | |
|---|
| 1200 | 1200 | |
|---|
| 1201 | | /* |
|---|
| | 1201 | /** |
|---|
| 1202 | 1202 | * Struct to launch the download in a thread |
|---|
| 1203 | 1203 | */ |
|---|
| … | … | |
| 1223 | 1223 | |
|---|
| 1224 | 1224 | update_download_thread_t *p_udt = vlc_object_create( p_update->p_libvlc, |
|---|
| 1225 | | sizeof( update_download_thread_t ) ); |
|---|
| | 1225 | sizeof( update_download_thread_t ) ); |
|---|
| 1226 | 1226 | if( !p_udt ) |
|---|
| 1227 | 1227 | { |
|---|
| … | … | |
| 1292 | 1292 | |
|---|
| 1293 | 1293 | psz_size = size_str( l_size ); |
|---|
| 1294 | | if( asprintf( &psz_status, "%s\nDownloading... O.O/%s %.1f%% done", p_update->release.psz_url, psz_size, 0.0 ) != -1 ) |
|---|
| | 1294 | if( asprintf( &psz_status, "%s\nDownloading... O.O/%s %.1f%% done", |
|---|
| | 1295 | p_update->release.psz_url, psz_size, 0.0 ) != -1 ) |
|---|
| 1295 | 1296 | { |
|---|
| 1296 | 1297 | i_progress = intf_UserProgress( p_udt, "Downloading ...", psz_status, 0.0, 0 ); |
|---|
| … | … | |
| 1311 | 1312 | f_progress = 100.0*(float)l_downloaded/(float)l_size; |
|---|
| 1312 | 1313 | |
|---|
| 1313 | | if( asprintf( &psz_status, "%s\nDonwloading... %s/%s %.1f%% done", p_update->release.psz_url, |
|---|
| 1314 | | psz_downloaded, psz_size, f_progress ) != -1 ) |
|---|
| | 1314 | if( asprintf( &psz_status, "%s\nDonwloading... %s/%s %.1f%% done", |
|---|
| | 1315 | p_update->release.psz_url, psz_downloaded, psz_size, |
|---|
| | 1316 | f_progress ) != -1 ) |
|---|
| 1315 | 1317 | { |
|---|
| 1316 | 1318 | intf_ProgressUpdate( p_udt, i_progress, psz_status, f_progress, 0 ); |
|---|
| … | … | |
| 1326 | 1328 | if( !intf_ProgressIsCancelled( p_udt, i_progress ) ) |
|---|
| 1327 | 1329 | { |
|---|
| 1328 | | if( asprintf( &psz_status, "%s\nDone %s (100.0%%)", p_update->release.psz_url, psz_size ) != -1 ) |
|---|
| | 1330 | if( asprintf( &psz_status, "%s\nDone %s (100.0%%)", |
|---|
| | 1331 | p_update->release.psz_url, psz_size ) != -1 ) |
|---|
| 1329 | 1332 | { |
|---|
| 1330 | 1333 | intf_ProgressUpdate( p_udt, i_progress, psz_status, 100.0, 0 ); |
|---|