Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
77e3dfff
Commit
77e3dfff
authored
Feb 20, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap and typo
parent
32c110b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/misc/update.c
src/misc/update.c
+10
-7
No files found.
src/misc/update.c
View file @
77e3dfff
...
...
@@ -883,7 +883,7 @@ static void EmptyRelease( update_t *p_update )
/**
* Get the update file and parse it
*
*
p_update has to be locked when calling this function
* p_update has to be locked when calling this function
*
* \param p_update pointer to update struct
* \return VLC_TRUE if the update is valid and authenticated
...
...
@@ -1198,7 +1198,7 @@ static char *size_str( long int l_size )
}
/*
/*
*
* Struct to launch the download in a thread
*/
typedef
struct
...
...
@@ -1222,7 +1222,7 @@ void update_Download( update_t *p_update, char *psz_destdir )
assert
(
p_update
);
update_download_thread_t
*
p_udt
=
vlc_object_create
(
p_update
->
p_libvlc
,
sizeof
(
update_download_thread_t
)
);
sizeof
(
update_download_thread_t
)
);
if
(
!
p_udt
)
{
msg_Err
(
p_update
->
p_libvlc
,
"out of memory"
);
...
...
@@ -1291,7 +1291,8 @@ void update_DownloadReal( update_download_thread_t *p_udt )
goto
end
;
psz_size
=
size_str
(
l_size
);
if
(
asprintf
(
&
psz_status
,
"%s
\n
Downloading... O.O/%s %.1f%% done"
,
p_update
->
release
.
psz_url
,
psz_size
,
0
.
0
)
!=
-
1
)
if
(
asprintf
(
&
psz_status
,
"%s
\n
Downloading... O.O/%s %.1f%% done"
,
p_update
->
release
.
psz_url
,
psz_size
,
0
.
0
)
!=
-
1
)
{
i_progress
=
intf_UserProgress
(
p_udt
,
"Downloading ..."
,
psz_status
,
0
.
0
,
0
);
free
(
psz_status
);
...
...
@@ -1310,8 +1311,9 @@ void update_DownloadReal( update_download_thread_t *p_udt )
psz_downloaded
=
size_str
(
l_downloaded
);
f_progress
=
100
.
0
*
(
float
)
l_downloaded
/
(
float
)
l_size
;
if
(
asprintf
(
&
psz_status
,
"%s
\n
Donwloading... %s/%s %.1f%% done"
,
p_update
->
release
.
psz_url
,
psz_downloaded
,
psz_size
,
f_progress
)
!=
-
1
)
if
(
asprintf
(
&
psz_status
,
"%s
\n
Donwloading... %s/%s %.1f%% done"
,
p_update
->
release
.
psz_url
,
psz_downloaded
,
psz_size
,
f_progress
)
!=
-
1
)
{
intf_ProgressUpdate
(
p_udt
,
i_progress
,
psz_status
,
f_progress
,
0
);
free
(
psz_status
);
...
...
@@ -1325,7 +1327,8 @@ void update_DownloadReal( update_download_thread_t *p_udt )
if
(
!
intf_ProgressIsCancelled
(
p_udt
,
i_progress
)
)
{
if
(
asprintf
(
&
psz_status
,
"%s
\n
Done %s (100.0%%)"
,
p_update
->
release
.
psz_url
,
psz_size
)
!=
-
1
)
if
(
asprintf
(
&
psz_status
,
"%s
\n
Done %s (100.0%%)"
,
p_update
->
release
.
psz_url
,
psz_size
)
!=
-
1
)
{
intf_ProgressUpdate
(
p_udt
,
i_progress
,
psz_status
,
100
.
0
,
0
);
free
(
psz_status
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment