Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
a62256c5
Commit
a62256c5
authored
May 03, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: dvb: scan: update snr and transponder
parent
b03450ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/access/dvb/scan.c
modules/access/dvb/scan.c
+12
-3
No files found.
modules/access/dvb/scan.c
View file @
a62256c5
...
...
@@ -943,9 +943,9 @@ static bool GetOtherTsSDT( scan_session_t *p_session, uint16_t i_ts_id,
}
static
void
ParsePAT
(
vlc_object_t
*
p_obj
,
scan_t
*
p_scan
,
const
dvbpsi_pat_t
*
p_pat
,
const
scan_tuner_config_t
*
p_cfg
)
const
dvbpsi_pat_t
*
p_pat
,
const
scan_tuner_config_t
*
p_cfg
,
int
i_snr
)
{
VLC_UNUSED
(
p_obj
);
/* PAT must not create new service without proper config ( local ) */
if
(
!
p_cfg
)
return
;
...
...
@@ -954,6 +954,15 @@ static void ParsePAT( vlc_object_t *p_obj, scan_t *p_scan,
if
(
unlikely
(
p_mplex
==
NULL
)
)
return
;
if
(
p_mplex
->
i_snr
>
0
&&
i_snr
>
p_mplex
->
i_snr
)
{
msg_Info
(
p_obj
,
"multiplex ts_id %"
PRIu16
" freq %u snr %d replaced by freq %u snr %d"
,
p_mplex
->
i_ts_id
,
p_mplex
->
cfg
.
i_frequency
,
p_mplex
->
i_snr
,
p_cfg
->
i_frequency
,
i_snr
);
p_mplex
->
cfg
=
*
p_cfg
;
}
p_mplex
->
i_snr
=
i_snr
;
const
dvbpsi_pat_program_t
*
p_program
;
for
(
p_program
=
p_pat
->
p_first_program
;
p_program
!=
NULL
;
p_program
=
p_program
->
p_next
)
{
...
...
@@ -1495,7 +1504,7 @@ static void scan_session_Destroy( scan_t *p_scan, scan_session_t *p_session )
/* Parse PAT (Declares only local services/programs) */
if
(
p_pat
)
ParsePAT
(
p_scan
->
p_obj
,
p_scan
,
p_pat
,
&
p_session
->
cfg
);
ParsePAT
(
p_scan
->
p_obj
,
p_scan
,
p_pat
,
&
p_session
->
cfg
,
p_session
->
i_snr
);
/* Parse NIT (Declares local services/programs) */
if
(
p_nit
)
...
...
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