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
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 )
...
@@ -158,7 +158,7 @@ int E_(Open) ( vlc_object_t *p_this )
(
!
strncmp
(
psz_parser_init
,
"V"
,
(
!
strncmp
(
psz_parser_init
,
"V"
,
psz_parser
-
psz_parser_init
)
)
)
psz_parser
-
psz_parser_init
)
)
)
{
{
p_dvb
->
i_polarisation
=
VLC_FALSE
;
p_dvb
->
i_polarisation
=
0
;
}
}
else
if
(
(
!
strncmp
(
psz_parser_init
,
"H"
,
else
if
(
(
!
strncmp
(
psz_parser_init
,
"H"
,
psz_parser
-
psz_parser_init
)
)
||
psz_parser
-
psz_parser_init
)
)
||
...
@@ -166,7 +166,7 @@ int E_(Open) ( vlc_object_t *p_this )
...
@@ -166,7 +166,7 @@ int E_(Open) ( vlc_object_t *p_this )
psz_parser
-
psz_parser_init
)
)
)
psz_parser
-
psz_parser_init
)
)
)
{
{
p_dvb
->
i_polarisation
=
VLC_TRUE
;
p_dvb
->
i_polarisation
=
1
;
}
}
else
if
(
(
!
strncmp
(
psz_parser_init
,
"A"
,
else
if
(
(
!
strncmp
(
psz_parser_init
,
"A"
,
psz_parser
-
psz_parser_init
)
)
||
psz_parser
-
psz_parser_init
)
)
||
...
@@ -326,7 +326,7 @@ int E_(Open) ( vlc_object_t *p_this )
...
@@ -326,7 +326,7 @@ int E_(Open) ( vlc_object_t *p_this )
/* Determine frontend device information and capabilities */
/* Determine frontend device information and capabilities */
if
(
p_dvb
->
b_probe
)
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"
);
msg_Err
(
p_input
,
"(access) cannot determine frontend info"
);
close
(
p_dvb
->
i_frontend
);
close
(
p_dvb
->
i_frontend
);
...
@@ -470,9 +470,7 @@ int E_(Open) ( vlc_object_t *p_this )
...
@@ -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
);
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
);
msg_Dbg
(
p_input
,
"DVB-S: satellite (QPSK) frontend %s found"
,
frontend_info
.
name
);
if
(
ioctl_SetQPSKFrontend
(
p_input
,
fep
,
p_dvb
->
i_polarisation
,
if
(
ioctl_SetQPSKFrontend
(
p_input
,
fep
)
<
0
)
p_dvb
->
u_lnb_lof1
,
p_dvb
->
u_lnb_lof2
,
p_dvb
->
u_lnb_slof
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
)
<
0
)
{
{
msg_Err
(
p_input
,
"DVB-S: tuning failed"
);
msg_Err
(
p_input
,
"DVB-S: tuning failed"
);
close
(
p_dvb
->
i_frontend
);
close
(
p_dvb
->
i_frontend
);
...
@@ -489,7 +487,7 @@ int E_(Open) ( vlc_object_t *p_this )
...
@@ -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
.
fec_inner
=
dvb_DecodeFEC
(
p_input
,
p_dvb
->
i_fec
);
fep
.
u
.
qam
.
modulation
=
dvb_DecodeModulation
(
p_input
,
p_dvb
->
i_modulation
);
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
);
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"
);
msg_Err
(
p_input
,
"DVB-C: tuning failed"
);
close
(
p_dvb
->
i_frontend
);
close
(
p_dvb
->
i_frontend
);
...
@@ -510,7 +508,7 @@ int E_(Open) ( vlc_object_t *p_this )
...
@@ -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
.
guard_interval
=
dvb_DecodeGuardInterval
(
p_input
,
p_dvb
->
i_guard
);
fep
.
u
.
ofdm
.
hierarchy_information
=
dvb_DecodeHierarchy
(
p_input
,
p_dvb
->
i_hierarchy
);
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
);
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"
);
msg_Err
(
p_input
,
"DVB-T: tuning failed"
);
close
(
p_dvb
->
i_frontend
);
close
(
p_dvb
->
i_frontend
);
...
@@ -564,7 +562,7 @@ int E_(Open) ( vlc_object_t *p_this )
...
@@ -564,7 +562,7 @@ int E_(Open) ( vlc_object_t *p_this )
msg_Dbg
(
p_input
,
"setting filter on PAT"
);
msg_Dbg
(
p_input
,
"setting filter on PAT"
);
/* Set Filter on PAT packet */
/* 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
# ifdef HAVE_ERRNO_H
msg_Err
(
p_input
,
"an error occured when setting filter on PAT (%s)"
,
strerror
(
errno
)
);
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,
...
@@ -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
)
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
,
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
,
&
p_input
->
stream
.
pp_programs
[
i
]
->
pp_es
[
0
]
->
i_demux_fd
,
21
);
21
,
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
}
}
}
}
...
@@ -724,8 +721,7 @@ int SatelliteSetProgram( input_thread_t * p_input,
...
@@ -724,8 +721,7 @@ int SatelliteSetProgram( input_thread_t * p_input,
case
MPEG2_MOTO_VIDEO_ES
:
case
MPEG2_MOTO_VIDEO_ES
:
if
(
input_SelectES
(
p_input
,
p_es
)
==
0
)
if
(
input_SelectES
(
p_input
,
p_es
)
==
0
)
{
{
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_video_type
,
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_video_type
);
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
u_video_type
+=
5
;
u_video_type
+=
5
;
}
}
break
;
break
;
...
@@ -733,14 +729,13 @@ int SatelliteSetProgram( input_thread_t * p_input,
...
@@ -733,14 +729,13 @@ int SatelliteSetProgram( input_thread_t * p_input,
case
MPEG2_AUDIO_ES
:
case
MPEG2_AUDIO_ES
:
if
(
input_SelectES
(
p_input
,
p_es
)
==
0
)
if
(
input_SelectES
(
p_input
,
p_es
)
==
0
)
{
{
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_audio_type
,
ioctl_SetDMXFilter
(
p_input
,
p_es
->
i_id
,
&
p_es
->
i_demux_fd
,
u_audio_type
);
p_dvb
->
u_adapter
,
p_dvb
->
u_device
);
input_SelectES
(
p_input
,
p_es
);
input_SelectES
(
p_input
,
p_es
);
u_audio_type
+=
5
;
u_audio_type
+=
5
;
}
}
break
;
break
;
default:
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
);
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
);
msg_Warn
(
p_input
,
"ES streamtype 0x%d found used as DMX_PES_OTHER !!"
,(
int
)
p_es
->
i_cat
);
break
;
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
...
@@ -298,7 +298,7 @@ int ioctl_SetQPSKFrontend( input_thread_t * p_input, struct dvb_frontend_paramet
local frequencies of the LNB */
local frequencies of the LNB */
hiband
=
(
fep
.
frequency
>=
p_dvb
->
u_lnb_slof
);
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
);
msg_Err
(
p_input
,
"DVB-S: Setup frontend switch failed (%d)"
,
i_ret
);
return
-
1
;
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