Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8529fa14
Commit
8529fa14
authored
Aug 25, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvb: fixes.
parent
3f821deb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
modules/access/dvb/access.c
modules/access/dvb/access.c
+25
-5
No files found.
modules/access/dvb/access.c
View file @
8529fa14
...
...
@@ -192,7 +192,8 @@ static int Control( access_t *, int, va_list );
#define SATELLITE_READ_ONCE 3
#define TS_PACKET_SIZE 188
static
void
FilterUnset
(
access_t
*
,
int
i_start
,
int
i_max
);
static
void
FilterUnset
(
access_t
*
,
int
i_max
);
static
void
FilterUnsetPID
(
access_t
*
,
int
i_pid
);
static
void
FilterSet
(
access_t
*
,
int
i_pid
,
int
i_type
);
static
void
VarInit
(
access_t
*
);
...
...
@@ -283,7 +284,7 @@ static void Close( vlc_object_t *p_this )
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
FilterUnset
(
p_access
,
0
,
p_sys
->
b_budget_mode
?
1
:
MAX_DEMUX
);
FilterUnset
(
p_access
,
p_sys
->
b_budget_mode
?
1
:
MAX_DEMUX
);
E_
(
DVRClose
)(
p_access
);
E_
(
FrontendClose
)(
p_access
);
...
...
@@ -386,7 +387,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
if
(
b_bool
)
FilterSet
(
p_access
,
i_int
,
OTHER_TYPE
);
else
FilterUnset
(
p_access
,
i_int
,
i_int
+
1
);
FilterUnset
PID
(
p_access
,
i_int
);
}
break
;
...
...
@@ -411,6 +412,9 @@ static void FilterSet( access_t *p_access, int i_pid, int i_type )
{
if
(
!
p_sys
->
p_demux_handles
[
i
].
i_type
)
break
;
if
(
p_sys
->
p_demux_handles
[
i
].
i_pid
==
i_pid
)
return
;
/* Already set */
}
if
(
i
>=
MAX_DEMUX
)
...
...
@@ -429,12 +433,12 @@ static void FilterSet( access_t *p_access, int i_pid, int i_type )
p_sys
->
p_demux_handles
[
i
].
i_pid
=
i_pid
;
}
static
void
FilterUnset
(
access_t
*
p_access
,
int
i_
start
,
int
i_
max
)
static
void
FilterUnset
(
access_t
*
p_access
,
int
i_max
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i
;
for
(
i
=
i_start
;
i
<
i_max
;
i
++
)
for
(
i
=
0
;
i
<
i_max
;
i
++
)
{
if
(
p_sys
->
p_demux_handles
[
i
].
i_type
)
{
...
...
@@ -444,6 +448,22 @@ static void FilterUnset( access_t *p_access, int i_start, int i_max )
}
}
static
void
FilterUnsetPID
(
access_t
*
p_access
,
int
i_pid
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i
;
for
(
i
=
0
;
i
<
MAX_DEMUX
;
i
++
)
{
if
(
p_sys
->
p_demux_handles
[
i
].
i_type
&&
p_sys
->
p_demux_handles
[
i
].
i_pid
==
i_pid
)
{
E_
(
DMXUnsetFilter
)(
p_access
,
p_sys
->
p_demux_handles
[
i
].
i_handle
);
p_sys
->
p_demux_handles
[
i
].
i_type
=
0
;
}
}
}
/*****************************************************************************
* VarInit/ParseMRL:
*****************************************************************************/
...
...
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