Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
be19f7fa
Commit
be19f7fa
authored
Jan 20, 2009
by
Laurent Aimar
Browse files
Removed useless ACCESS_GET_MTU/STREAM_GET_MTU.
parent
8d305dc5
Changes
31
Hide whitespace changes
Inline
Side-by-side
include/vlc_access.h
View file @
be19f7fa
...
...
@@ -45,8 +45,7 @@ enum access_query_e
ACCESS_CAN_CONTROL_PACE
,
/* arg1= bool* cannot fail */
/* */
ACCESS_GET_MTU
=
0x100
,
/* arg1= int* cannot fail(0 if no sense)*/
ACCESS_GET_PTS_DELAY
,
/* arg1= int64_t* cannot fail */
ACCESS_GET_PTS_DELAY
=
0x101
,
/* arg1= int64_t* cannot fail */
/* */
ACCESS_GET_TITLE_INFO
,
/* arg1=input_title_t*** arg2=int* res=can fail */
/* Meta data */
...
...
include/vlc_stream.h
View file @
be19f7fa
...
...
@@ -89,8 +89,6 @@ enum stream_query_e
STREAM_GET_SIZE
,
/**< arg1= int64_t * res=cannot fail (0 if no sense)*/
STREAM_GET_MTU
,
/**< arg1= int * res=cannot fail (0 if no sense)*/
/* Special for direct access control from demuxer.
* XXX: avoid using it by all means */
STREAM_CONTROL_ACCESS
,
/* arg1= int i_access_query, args res: can fail
...
...
@@ -135,13 +133,6 @@ static inline int64_t stream_Size( stream_t *s )
return
i_pos
;
}
static
inline
int
stream_MTU
(
stream_t
*
s
)
{
int
i_mtu
;
stream_Control
(
s
,
STREAM_GET_MTU
,
&
i_mtu
);
return
i_mtu
;
}
static
inline
int
stream_Seek
(
stream_t
*
s
,
int64_t
i_pos
)
{
return
stream_Control
(
s
,
STREAM_SET_POSITION
,
i_pos
);
...
...
modules/access/bda/bda.c
View file @
be19f7fa
...
...
@@ -535,10 +535,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb_bool
=
false
;
break
;
case
ACCESS_GET_MTU
:
/* 4 */
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
/* 5 */
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
"dvb-caching"
)
*
1000
;
...
...
modules/access/cdda.c
View file @
be19f7fa
...
...
@@ -341,9 +341,8 @@ static int Seek( access_t *p_access, int64_t i_pos )
*****************************************************************************/
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
bool
*
pb_bool
;
int64_t
*
pi_64
;
switch
(
i_query
)
{
...
...
@@ -355,11 +354,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
true
;
break
;
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
CDDA_DATA_ONCE
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
"cdda-caching"
)
*
1000
;
...
...
modules/access/cdda/access.c
View file @
be19f7fa
...
...
@@ -929,15 +929,6 @@ static int CDDAControl( access_t *p_access, int i_query, va_list args )
return
VLC_SUCCESS
;
}
/* */
case
ACCESS_GET_MTU
:
{
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
p_cdda
->
i_blocks_per_read
*
CDIO_CD_FRAMESIZE_RAW
;
dbg_print
(
INPUT_DBG_META
,
"Get MTU %d"
,
*
pi_int
);
break
;
}
case
ACCESS_GET_PTS_DELAY
:
{
int64_t
*
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
...
...
modules/access/directory.c
View file @
be19f7fa
...
...
@@ -465,9 +465,8 @@ fatal:
*****************************************************************************/
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
bool
*
pb_bool
;
int64_t
*
pi_64
;
switch
(
i_query
)
{
...
...
@@ -485,11 +484,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
DEFAULT_PTS_DELAY
*
1000
;
...
...
modules/access/dshow/dshow.cpp
View file @
be19f7fa
...
...
@@ -1824,11 +1824,6 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"dshow-caching"
)
*
1000
;
...
...
modules/access/dvb/access.c
View file @
be19f7fa
...
...
@@ -712,7 +712,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
bool
*
pb_bool
,
b_bool
;
int
*
pi_int
,
i_int
;
int
i_int
;
int64_t
*
pi_64
;
double
*
pf1
,
*
pf2
;
dvbpsi_pmt_t
*
p_pmt
;
...
...
@@ -729,14 +729,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
false
;
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
if
(
p_sys
->
b_scan_mode
)
*
pi_int
=
0
;
else
*
pi_int
=
DVB_READ_ONCE
*
TS_PACKET_SIZE
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
"dvb-caching"
)
*
1000
;
...
...
modules/access/eyetv.m
View file @
be19f7fa
...
...
@@ -324,11 +324,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
MTU
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
p_sys
->
i_pts_delay
*
1000
;
...
...
modules/access/file.c
View file @
be19f7fa
...
...
@@ -276,9 +276,8 @@ static int Seek (access_t *p_access, int64_t i_pos)
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
bool
*
pb_bool
;
int64_t
*
pi_64
;
switch
(
i_query
)
{
...
...
@@ -296,11 +295,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
"file-caching"
)
*
INT64_C
(
1000
);
...
...
modules/access/ftp.c
View file @
be19f7fa
...
...
@@ -553,9 +553,8 @@ static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
*****************************************************************************/
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
bool
*
pb_bool
;
int64_t
*
pi_64
;
switch
(
i_query
)
{
...
...
@@ -578,11 +577,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"ftp-caching"
)
*
INT64_C
(
1000
);
...
...
modules/access/gnomevfs.c
View file @
be19f7fa
...
...
@@ -394,12 +394,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
p_sys
->
b_pace_control
;
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
...
...
modules/access/http.c
View file @
be19f7fa
...
...
@@ -913,10 +913,9 @@ static int Seek( access_t *p_access, int64_t i_pos )
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
vlc_meta_t
*
p_meta
;
bool
*
pb_bool
;
int64_t
*
pi_64
;
vlc_meta_t
*
p_meta
;
switch
(
i_query
)
{
...
...
@@ -941,11 +940,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"http-caching"
)
*
1000
;
...
...
@@ -1710,7 +1704,7 @@ static void AuthParseHeader( access_t *p_access, const char *psz_header,
const
char
*
psz_end
=
strchr
(
psz_header
,
' '
);
if
(
psz_end
)
msg_Warn
(
p_access
,
"Unknown authentication scheme: '%*s'"
,
psz_end
-
psz_header
,
psz_header
);
(
int
)(
psz_end
-
psz_header
)
,
psz_header
);
else
msg_Warn
(
p_access
,
"Unknown authentication scheme: '%s'"
,
psz_header
);
...
...
modules/access/mmap.c
View file @
be19f7fa
...
...
@@ -292,10 +292,6 @@ static int Control (access_t *p_access, int query, va_list args)
*
((
bool
*
)
va_arg
(
args
,
bool
*
))
=
true
;
return
VLC_SUCCESS
;
case
ACCESS_GET_MTU
:
*
((
int
*
)
va_arg
(
args
,
int
*
))
=
p_sys
->
mtu
;
return
VLC_SUCCESS
;
case
ACCESS_GET_PTS_DELAY
:
{
int
delay_ms
=
var_CreateGetInteger
(
p_access
,
"file-caching"
);
...
...
modules/access/mms/mmsh.c
View file @
be19f7fa
...
...
@@ -232,7 +232,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
bool
*
pb_bool
;
bool
b_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
int
i_int
;
...
...
@@ -256,11 +255,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"mms-caching"
)
*
INT64_C
(
1000
);
...
...
modules/access/mms/mmstu.c
View file @
be19f7fa
...
...
@@ -251,7 +251,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
bool
*
pb_bool
;
bool
b_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
int
i_int
;
vlc_value_t
val
;
...
...
@@ -285,11 +284,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
var_Get
(
p_access
,
"mms-caching"
,
&
val
);
...
...
@@ -737,7 +731,7 @@ static int MMSOpen( access_t *p_access, vlc_url_t *p_url, int i_proto )
msg_Dbg
(
p_access
,
"answer 0x06 flags:0x%8.8"
PRIx32
" media_length:%"
PRIu32
"s "
"packet_length:%
zul
packet_count:%"
PRId32
" max_bit_rate:%d "
"packet_length:%
u
packet_count:%"
PRId32
" max_bit_rate:%d "
"header_size:%zu"
,
p_sys
->
i_flags_broadcast
,
p_sys
->
i_media_length
,
...
...
modules/access/pvr.c
View file @
be19f7fa
...
...
@@ -1015,11 +1015,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"pvr-caching"
)
*
1000
;
...
...
modules/access/rtmp/access.c
View file @
be19f7fa
...
...
@@ -448,7 +448,6 @@ static int Seek( access_t *p_access, int64_t i_pos )
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
bool
*
pb_bool
;
int
*
pi_int
;
int64_t
*
pi_64
;
switch
(
i_query
)
...
...
@@ -471,11 +470,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
"rtmp-caching"
)
*
INT64_C
(
1000
);
...
...
modules/access/rtsp/access.c
View file @
be19f7fa
...
...
@@ -341,12 +341,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
true
;
//p_sys->b_pace_control;
break
;
/* */
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
var_GetInteger
(
p_access
,
"realrtsp-caching"
)
*
1000
;
...
...
modules/access/smb.c
View file @
be19f7fa
...
...
@@ -407,11 +407,6 @@ static int Control( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
true
;
break
;
case
ACCESS_GET_MTU
:
pi_int
=
(
int
*
)
va_arg
(
args
,
int
*
);
*
pi_int
=
0
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"smb-caching"
)
*
1000
;
...
...
Prev
1
2
Next
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