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
19431a2e
Commit
19431a2e
authored
May 07, 2004
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation fixes
parent
e2fc6acb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
+12
-17
modules/access/dvb/access.c
modules/access/dvb/access.c
+11
-16
modules/access/dvb/dvb.c
modules/access/dvb/dvb.c
+1
-1
No files found.
modules/access/dvb/access.c
View file @
19431a2e
...
...
@@ -158,7 +158,7 @@ int E_(Open) ( vlc_object_t *p_this )
(
!
strncmp
(
psz_parser_init
,
"V"
,
psz_parser
-
psz_parser_init
)
)
)
{
p_dvb
->
i_polarisation
=
VLC_FALSE
;
p_dvb
->
i_polarisation
=
0
;
}
else
if
(
(
!
strncmp
(
psz_parser_init
,
"H"
,
psz_parser
-
psz_parser_init
)
)
||
...
...
@@ -166,7 +166,7 @@ int E_(Open) ( vlc_object_t *p_this )
psz_parser
-
psz_parser_init
)
)
)
{
p_dvb
->
i_polarisation
=
VLC_TRUE
;
p_dvb
->
i_polarisation
=
1
;
}
else
if
(
(
!
strncmp
(
psz_parser_init
,
"A"
,
psz_parser
-
psz_parser_init
)
)
||
...
...
@@ -326,7 +326,7 @@ int E_(Open) ( vlc_object_t *p_this )
/* Determine frontend device information and capabilities */
if
(
p_dvb
->
b_probe
)
{
if
(
ioctl_InfoFrontend
(
p_input
,
&
frontend_info
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
)
<
0
)
if
(
ioctl_InfoFrontend
(
p_input
,
&
frontend_info
)
<
0
)
{
msg_Err
(
p_input
,
"(access) cannot determine frontend info"
);
close
(
p_dvb
->
i_frontend
);
...
...
@@ -470,9 +470,7 @@ int E_(Open) ( vlc_object_t *p_this )
fep
.
u
.
qpsk
.
fec_inner
=
dvb_DecodeFEC
(
p_input
,
p_dvb
->
i_fec
);
msg_Dbg
(
p_input
,
"DVB-S: satellite (QPSK) frontend %s found"
,
frontend_info
.
name
);
if
(
ioctl_SetQPSKFrontend
(
p_input
,
fep
,
p_dvb
->
i_polarisation
,
p_dvb
->
u_lnb_lof1
,
p_dvb
->
u_lnb_lof2
,
p_dvb
->
u_lnb_slof
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
)
<
0
)
if
(
ioctl_SetQPSKFrontend
(
p_input
,
fep
)
<
0
)
{
msg_Err
(
p_input
,
"DVB-S: tuning failed"
);
close
(
p_dvb
->
i_frontend
);
...
...
@@ -489,7 +487,7 @@ int E_(Open) ( vlc_object_t *p_this )
fep
.
u
.
qam
.
fec_inner
=
dvb_DecodeFEC
(
p_input
,
p_dvb
->
i_fec
);
fep
.
u
.
qam
.
modulation
=
dvb_DecodeModulation
(
p_input
,
p_dvb
->
i_modulation
);
msg_Dbg
(
p_input
,
"DVB-C: cable (QAM) frontend %s found"
,
frontend_info
.
name
);
if
(
ioctl_SetQAMFrontend
(
p_input
,
fep
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
)
<
0
)
if
(
ioctl_SetQAMFrontend
(
p_input
,
fep
)
<
0
)
{
msg_Err
(
p_input
,
"DVB-C: tuning failed"
);
close
(
p_dvb
->
i_frontend
);
...
...
@@ -510,7 +508,7 @@ int E_(Open) ( vlc_object_t *p_this )
fep
.
u
.
ofdm
.
guard_interval
=
dvb_DecodeGuardInterval
(
p_input
,
p_dvb
->
i_guard
);
fep
.
u
.
ofdm
.
hierarchy_information
=
dvb_DecodeHierarchy
(
p_input
,
p_dvb
->
i_hierarchy
);
msg_Dbg
(
p_input
,
"DVB-T: terrestrial (OFDM) frontend %s found"
,
frontend_info
.
name
);
if
(
ioctl_SetOFDMFrontend
(
p_input
,
fep
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
)
<
0
)
if
(
ioctl_SetOFDMFrontend
(
p_input
,
fep
)
<
0
)
{
msg_Err
(
p_input
,
"DVB-T: tuning failed"
);
close
(
p_dvb
->
i_frontend
);
...
...
@@ -564,7 +562,7 @@ int E_(Open) ( vlc_object_t *p_this )
msg_Dbg
(
p_input
,
"setting filter on PAT"
);
/* Set Filter on PAT packet */
if
(
ioctl_SetDMXFilter
(
p_input
,
0
,
&
i_fd
,
21
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
)
<
0
)
if
(
ioctl_SetDMXFilter
(
p_input
,
0
,
&
i_fd
,
21
)
<
0
)
{
# ifdef HAVE_ERRNO_H
msg_Err
(
p_input
,
"an error occured when setting filter on PAT (%s)"
,
strerror
(
errno
)
);
...
...
@@ -653,8 +651,7 @@ static ssize_t SatelliteRead( input_thread_t * p_input, byte_t * p_buffer,
if
(
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_demux_fd
==
0
)
{
ioctl_SetDMXFilter
(
p_input
,
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_id
,
&
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_demux_fd
,
21
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
&
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_demux_fd
,
21
);
}
}
...
...
@@ -724,8 +721,7 @@ int SatelliteSetProgram( input_thread_t * p_input,
case
MPEG2_MOTO_VIDEO_ES
:
if
(
input_SelectES
(
p_input
,
p_es
)
==
0
)
{
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_video_type
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_video_type
);
u_video_type
+=
5
;
}
break
;
...
...
@@ -733,14 +729,13 @@ int SatelliteSetProgram( input_thread_t * p_input,
case
MPEG2_AUDIO_ES
:
if
(
input_SelectES
(
p_input
,
p_es
)
==
0
)
{
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_audio_type
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_audio_type
);
input_SelectES
(
p_input
,
p_es
);
u_audio_type
+=
5
;
}
break
;
default:
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
21
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
21
);
input_SelectES
(
p_input
,
p_es
);
msg_Warn
(
p_input
,
"ES streamtype 0x%d found used as DMX_PES_OTHER !!"
,(
int
)
p_es
->
i_cat
);
break
;
...
...
modules/access/dvb/dvb.c
View file @
19431a2e
...
...
@@ -298,7 +298,7 @@ int ioctl_SetQPSKFrontend( input_thread_t * p_input, struct dvb_frontend_paramet
local frequencies of the LNB */
hiband
=
(
fep
.
frequency
>=
p_dvb
->
u_lnb_slof
);
if
(
(
i_ret
=
ioctl_SetupSwitch
(
p_input
,
0
,
p_dvb
->
b
_polarisation
,
hiband
))
<
0
)
if
(
(
i_ret
=
ioctl_SetupSwitch
(
p_input
,
0
,
p_dvb
->
i
_polarisation
,
hiband
))
<
0
)
{
msg_Err
(
p_input
,
"DVB-S: Setup frontend switch failed (%d)"
,
i_ret
);
return
-
1
;
...
...
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