Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
883f1194
Commit
883f1194
authored
Aug 03, 2010
by
David Kaplan
Committed by
Rémi Denis-Courmont
Aug 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DVB channel search dialog now shows ETA
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
59481481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/access/dvb/scan.c
modules/access/dvb/scan.c
+7
-7
No files found.
modules/access/dvb/scan.c
View file @
883f1194
...
...
@@ -273,7 +273,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
if
(
p_scan
->
i_index
<
*
pi_count
)
{
/* setup params for scan */
p_cfg
->
i_
bandwidth
=
p_scan
->
parameter
.
sat_info
.
p_transponders
[
p_scan
->
i_index
].
i_symbol_rate
/
1000
;
p_cfg
->
i_
symbol_rate
=
p_scan
->
parameter
.
sat_info
.
p_transponders
[
p_scan
->
i_index
].
i_symbol_rate
/
1000
;
p_cfg
->
i_frequency
=
p_scan
->
parameter
.
sat_info
.
p_transponders
[
p_scan
->
i_index
].
i_frequency
;
p_cfg
->
i_fec
=
p_scan
->
parameter
.
sat_info
.
p_transponders
[
p_scan
->
i_index
].
i_fec
;
p_cfg
->
c_polarization
=
p_scan
->
parameter
.
sat_info
.
p_transponders
[
p_scan
->
i_index
].
c_polarization
;
...
...
@@ -283,7 +283,7 @@ static int ScanDvbSNextFast( scan_t *p_scan, scan_configuration_t *p_cfg, double
p_scan
->
i_index
+
1
,
*
pi_count
,
p_cfg
->
i_frequency
,
p_cfg
->
i_
bandwidth
,
p_cfg
->
i_
symbol_rate
,
p_cfg
->
i_fec
,
p_cfg
->
c_polarization
);
...
...
@@ -486,12 +486,12 @@ int scan_Next( scan_t *p_scan, scan_configuration_t *p_cfg )
i_service
++
;
}
if
(
asprintf
(
&
psz_text
,
_
(
"%.1f MHz (%d services)"
),
(
double
)
p_cfg
->
i_frequency
/
1000000
,
i_service
)
>=
0
)
{
const
mtime_t
i_eta
=
f_position
>
0
.
005
?
(
mdate
()
-
p_scan
->
i_time_start
)
*
(
1
.
0
/
f_position
-
1
.
0
)
:
-
1
;
char
psz_eta
[
MSTRTIME_MAX_SIZE
];
const
mtime_t
i_eta
=
f_position
>
0
.
005
?
(
mdate
()
-
p_scan
->
i_time_start
)
*
(
1
.
0
/
f_position
-
1
.
0
)
:
-
1
;
char
psz_eta
[
MSTRTIME_MAX_SIZE
];
if
(
asprintf
(
&
psz_text
,
_
(
"%.1f MHz (%d services)
\n
~%s remaining"
),
(
double
)
p_cfg
->
i_frequency
/
1000000
,
i_service
,
secstotimestr
(
psz_eta
,
i_eta
/
1000000
)
)
>=
0
)
{
if
(
i_eta
>=
0
)
msg_Info
(
p_scan
->
p_obj
,
"Scan ETA %s | %f"
,
secstotimestr
(
psz_eta
,
i_eta
/
1000000
),
f_position
*
100
);
...
...
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