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
96373cdb
Commit
96373cdb
authored
Aug 24, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvb: compilation fix. With great luck it may, perhaps, work in budget
mode (else I still need to hack ts demuxer).
parent
a82c7e3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
44 deletions
+33
-44
modules/access/dvb/access.c
modules/access/dvb/access.c
+32
-43
modules/access/dvb/dvb.h
modules/access/dvb/dvb.h
+1
-1
No files found.
modules/access/dvb/access.c
View file @
96373cdb
...
...
@@ -190,16 +190,7 @@ static block_t *Block( access_t * );
static
int
Control
(
access_t
*
,
int
,
va_list
);
#define SATELLITE_READ_ONCE 3
#if 0
static ssize_t Read( input_thread_t * p_input, byte_t * p_buffer,
size_t i_len);
static int SetArea ( input_thread_t *, input_area_t * );
static int SetProgram ( input_thread_t *, pgrm_descriptor_t * );
static void Seek ( input_thread_t *, off_t );
static void AllocateDemux( input_thread_t * p_input, int i_pid,
int i_type );
static void CloseProgram( input_thread_t * p_input );
#endif
#define TS_PACKET_SIZE 188
static
void
FilterUnset
(
access_t
*
,
int
i_start
,
int
i_max
);
static
void
FilterSet
(
access_t
*
,
int
i_pid
,
int
i_type
);
...
...
@@ -217,7 +208,7 @@ static int Open( vlc_object_t *p_this )
access_sys_t
*
p_sys
;
/* Only if selected */
if
(
*
p_access
->
psz_acces
==
'\0'
)
if
(
*
p_access
->
psz_acces
s
==
'\0'
)
return
VLC_EGENERIC
;
/* Set up access */
...
...
@@ -273,12 +264,12 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
b_budget_mode
)
{
msg_Dbg
(
p_access
,
"setting filter on all PIDs"
);
AllocateDemux
(
p_access
,
0x2000
,
OTHER_TYPE
);
FilterSet
(
p_access
,
0x2000
,
OTHER_TYPE
);
}
else
{
msg_Dbg
(
p_access
,
"setting filter on PAT"
);
AllocateDemux
(
p_access
,
0x0
,
OTHER_TYPE
);
FilterSet
(
p_access
,
0x0
,
OTHER_TYPE
);
}
return
VLC_SUCCESS
;
...
...
@@ -304,7 +295,6 @@ static void Close( vlc_object_t *p_this )
*****************************************************************************/
static
block_t
*
Block
(
access_t
*
p_access
)
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
struct
timeval
timeout
;
fd_set
fds
;
...
...
@@ -334,14 +324,14 @@ static block_t *Block( access_t *p_access )
if
(
i_ret
<
0
)
{
msg_Err
(
p_
input
,
"select error (%s)"
,
strerror
(
errno
)
);
msg_Err
(
p_
access
,
"select error (%s)"
,
strerror
(
errno
)
);
return
NULL
;
}
p_block
=
block_New
(
p_access
,
p_sys
->
i_mtu
);
p_block
=
block_New
(
p_access
,
SATELLITE_READ_ONCE
*
TS_PACKET_SIZE
);
if
(
(
p_block
->
i_buffer
=
read
(
p_sys
->
i_handle
,
p_block
->
p_buffer
,
SATELLITE_READ_ONCE
*
TS_PACKET_SIZE
)
)
<=
0
)
{
msg_Err
(
p_
input
,
"read failed (%s)"
,
strerror
(
errno
)
);
msg_Err
(
p_
access
,
"read failed (%s)"
,
strerror
(
errno
)
);
block_Release
(
p_block
);
return
NULL
;
}
...
...
@@ -358,7 +348,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
vlc_bool_t
*
pb_bool
,
b_bool
;
int
*
pi_int
,
i_int
;
int64_t
*
pi_64
;
vlc_value_t
val
;
switch
(
i_query
)
{
...
...
@@ -412,7 +401,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/*****************************************************************************
* FilterSet/FilterUnset:
*****************************************************************************/
static
void
FilterSet
(
access_t
*
p_access
,
int
i_pid
,
int
i_type
)
;
static
void
FilterSet
(
access_t
*
p_access
,
int
i_pid
,
int
i_type
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i
;
...
...
@@ -461,42 +450,42 @@ static void FilterUnset( access_t *p_access, int i_start, int i_max )
static
void
VarInit
(
access_t
*
p_access
)
{
/* */
var_Create
(
p_
input
,
"dvb-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
/* */
var_Create
(
p_
input
,
"dvb-adapter"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-device"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-frequency"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-inversion"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-probe"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-lnb-lof1"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-lnb-lof2"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-lnb-slof"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-adapter"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-device"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-frequency"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-inversion"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-probe"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-lnb-lof1"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-lnb-lof2"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-lnb-slof"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
/* */
var_Create
(
p_
input
,
"dvb-budget-mode"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-satno"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-voltage"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-tone"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-fec"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-srate"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-budget-mode"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-satno"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-voltage"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-tone"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-fec"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-srate"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
/* */
var_Create
(
p_
input
,
"dvb-modulation"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-modulation"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
/* */
var_Create
(
p_
input
,
"dvb-code-rate-hp"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-code-rate-lp"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-bandwidth"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-transmission"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-guard"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
input
,
"dvb-hierarchy"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-code-rate-hp"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-code-rate-lp"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-bandwidth"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-transmission"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-guard"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_
access
,
"dvb-hierarchy"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
}
/* */
static
int
ParseMRL
(
access_t
*
p_access
)
{
char
*
psz_dup
=
strdup
(
p_
input
->
psz_path
);
char
*
psz_dup
=
strdup
(
p_
access
->
psz_path
);
char
*
psz_parser
=
psz_dup
;
char
*
psz_next
;
vlc_value_t
val
;
...
...
@@ -583,7 +572,7 @@ static int ParseMRL( access_t *p_access )
}
else
{
msg_Err
(
p_access
,
"unknown option (%
d
)"
,
psz_parser
);
msg_Err
(
p_access
,
"unknown option (%
s
)"
,
psz_parser
);
free
(
psz_dup
);
return
VLC_EGENERIC
;
}
...
...
modules/access/dvb/dvb.h
View file @
96373cdb
...
...
@@ -45,7 +45,7 @@ typedef struct frontend_t frontend_t;
#define MAX_DEMUX 24
struct
access_t
struct
access_
sys_
t
{
int
i_handle
;
demux_handle_t
p_demux_handles
[
MAX_DEMUX
];
...
...
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