Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
47512c0d
Commit
47512c0d
authored
Mar 10, 2009
by
Rémi Denis-Courmont
Browse files
Fix progress dialog scale
parent
f2d57a37
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/access/dvb/scan.c
View file @
47512c0d
...
...
@@ -320,7 +320,7 @@ int scan_Next( scan_t *p_scan, scan_configuration_t *p_cfg )
if
(
p_scan
->
p_dialog
==
NULL
)
p_scan
->
p_dialog
=
dialog_ProgressCreate
(
p_scan
->
p_obj
,
_
(
"Scanning DVB-T"
),
psz_text
,
_
(
"Cancel"
)
);
if
(
p_scan
->
p_dialog
!=
NULL
)
dialog_ProgressSet
(
p_scan
->
p_dialog
,
psz_text
,
100
*
f_position
);
dialog_ProgressSet
(
p_scan
->
p_dialog
,
psz_text
,
f_position
);
free
(
psz_text
);
}
...
...
modules/demux/avi/avi.c
View file @
47512c0d
...
...
@@ -2415,8 +2415,8 @@ static void AVI_IndexCreate( demux_t *p_demux )
if
(
dialog_ProgressCancelled
(
p_dialog
)
)
break
;
double
f_pos
=
100
.
0
*
stream_Tell
(
p_demux
->
s
)
/
stream_Size
(
p_demux
->
s
);
float
f_pos
=
(
float
)
stream_Tell
(
p_demux
->
s
)
/
(
float
)
stream_Size
(
p_demux
->
s
);
dialog_ProgressSet
(
p_dialog
,
NULL
,
f_pos
);
i_dialog_update
=
mdate
();
...
...
src/misc/update.c
View file @
47512c0d
...
...
@@ -1606,7 +1606,7 @@ static void* update_DownloadReal( vlc_object_t *p_this )
l_downloaded
+=
i_read
;
psz_downloaded
=
size_str
(
l_downloaded
);
f_progress
=
100
.
0
*
(
float
)
l_downloaded
/
(
float
)
l_size
;
f_progress
=
(
float
)
l_downloaded
/
(
float
)
l_size
;
if
(
asprintf
(
&
psz_status
,
_
(
"%s
\n
Downloading... %s/%s %.1f%% done"
),
p_update
->
release
.
psz_url
,
psz_downloaded
,
psz_size
,
...
...
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