Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
93f8ec56
Commit
93f8ec56
authored
Aug 28, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dtv: implement ACCESS_GET_PRIVATE_ID_STATE control
parent
6dac806b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
modules/access/dtv/access.c
modules/access/dtv/access.c
+8
-1
modules/access/dtv/bdagraph.cpp
modules/access/dtv/bdagraph.cpp
+5
-0
modules/access/dtv/dtv.h
modules/access/dtv/dtv.h
+1
-0
modules/access/dtv/linux.c
modules/access/dtv/linux.c
+12
-0
No files found.
modules/access/dtv/access.c
View file @
93f8ec56
...
...
@@ -585,7 +585,14 @@ static int Control (access_t *access, int query, va_list args)
break
;
}
#endif
/*case ACCESS_GET_PRIVATE_ID_STATE: TODO? */
case
ACCESS_GET_PRIVATE_ID_STATE
:
{
unsigned
pid
=
va_arg
(
args
,
int
);
bool
*
on
=
va_arg
(
args
,
bool
*
);
*
on
=
likely
(
pid
<=
0x1FFF
)
?
dvb_get_pid_state
(
dev
,
pid
)
:
false
;
return
VLC_SUCCESS
;
}
default:
return
VLC_EGENERIC
;
...
...
modules/access/dtv/bdagraph.cpp
View file @
93f8ec56
...
...
@@ -167,6 +167,11 @@ void dvb_remove_pid (dvb_device_t *, uint16_t)
{
}
bool
dvb_get_pid_state
(
const
dvb_device_t
*
,
uint16_t
)
{
return
true
;
}
unsigned
dvb_enum_systems
(
dvb_device_t
*
d
)
{
return
d
->
module
->
EnumSystems
(
);
...
...
modules/access/dtv/dtv.h
View file @
93f8ec56
...
...
@@ -50,6 +50,7 @@ ssize_t dvb_read (dvb_device_t *, void *, size_t);
int
dvb_add_pid
(
dvb_device_t
*
,
uint16_t
);
void
dvb_remove_pid
(
dvb_device_t
*
,
uint16_t
);
bool
dvb_get_pid_state
(
const
dvb_device_t
*
,
uint16_t
);
unsigned
dvb_enum_systems
(
dvb_device_t
*
);
float
dvb_get_signal_strength
(
dvb_device_t
*
);
...
...
modules/access/dtv/linux.c
View file @
93f8ec56
...
...
@@ -450,6 +450,18 @@ void dvb_remove_pid (dvb_device_t *d, uint16_t pid)
#endif
}
bool
dvb_get_pid_state
(
const
dvb_device_t
*
d
,
uint16_t
pid
)
{
if
(
d
->
budget
)
return
true
;
for
(
size_t
i
=
0
;
i
<
MAX_PIDS
;
i
++
)
if
(
d
->
pids
[
i
].
pid
==
pid
)
return
true
;
return
false
;
}
/** Finds a frontend of the correct type */
static
int
dvb_open_frontend
(
dvb_device_t
*
d
)
{
...
...
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