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
a5e92fec
Commit
a5e92fec
authored
Jul 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTV: make delsys structures static
parent
62e01604
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
modules/access/dtv/access.c
modules/access/dtv/access.c
+11
-9
modules/access/dtv/dtv.h
modules/access/dtv/dtv.h
+0
-4
No files found.
modules/access/dtv/access.c
View file @
a5e92fec
...
...
@@ -342,11 +342,13 @@ struct access_sys_t
dvb_device_t
*
dev
;
};
struct
delsys
typedef
struct
delsys
{
int
(
*
setup
)
(
vlc_object_t
*
,
dvb_device_t
*
,
uint64_t
freq
);
/* TODO: scan stuff */
};
}
delsys_t
;
static
const
delsys_t
dvbc
,
dvbs
,
dvbs2
,
dvbt
,
dvbt2
,
atsc
,
cqam
;
static
block_t
*
Read
(
access_t
*
);
static
int
Control
(
access_t
*
,
int
,
va_list
);
...
...
@@ -694,7 +696,7 @@ static int atsc_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
return
dvb_set_atsc
(
dev
,
freq
,
mod
);
}
const
delsys_t
atsc
=
{
.
setup
=
atsc_setup
};
static
const
delsys_t
atsc
=
{
.
setup
=
atsc_setup
};
static
int
cqam_setup
(
vlc_object_t
*
obj
,
dvb_device_t
*
dev
,
uint64_t
freq
)
{
...
...
@@ -703,7 +705,7 @@ static int cqam_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
return
dvb_set_cqam
(
dev
,
freq
,
mod
);
}
const
delsys_t
cqam
=
{
.
setup
=
cqam_setup
};
static
const
delsys_t
cqam
=
{
.
setup
=
cqam_setup
};
/*** DVB-C ***/
...
...
@@ -716,7 +718,7 @@ static int dvbc_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
return
dvb_set_dvbc
(
dev
,
freq
,
mod
,
srate
,
fec
);
}
const
delsys_t
dvbc
=
{
.
setup
=
dvbc_setup
};
static
const
delsys_t
dvbc
=
{
.
setup
=
dvbc_setup
};
/*** DVB-S ***/
...
...
@@ -782,8 +784,8 @@ static int dvbs2_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
return
ret
;
}
const
delsys_t
dvbs
=
{
.
setup
=
dvbs_setup
};
const
delsys_t
dvbs2
=
{
.
setup
=
dvbs2_setup
};
static
const
delsys_t
dvbs
=
{
.
setup
=
dvbs_setup
};
static
const
delsys_t
dvbs2
=
{
.
setup
=
dvbs2_setup
};
/*** DVB-T ***/
...
...
@@ -811,5 +813,5 @@ static int dvbt2_setup (vlc_object_t *obj, dvb_device_t *dev, uint64_t freq)
return
dvb_set_dvbt2
(
dev
,
freq
,
mod
,
fec
,
bw
,
tx
,
guard
);
}
const
delsys_t
dvbt
=
{
.
setup
=
dvbt_setup
};
const
delsys_t
dvbt2
=
{
.
setup
=
dvbt2_setup
};
static
const
delsys_t
dvbt
=
{
.
setup
=
dvbt_setup
};
static
const
delsys_t
dvbt2
=
{
.
setup
=
dvbt2_setup
};
modules/access/dtv/dtv.h
View file @
a5e92fec
...
...
@@ -37,10 +37,6 @@ enum {
DVB_T2
=
0x00000200
,
};
typedef
struct
delsys
delsys_t
;
extern
const
delsys_t
dvbc
,
dvbs
,
dvbs2
,
dvbt
,
dvbt2
,
atsc
,
cqam
;
typedef
struct
dvb_device
dvb_device_t
;
dvb_device_t
*
dvb_open
(
vlc_object_t
*
obj
);
...
...
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