Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f94a2f9c
Commit
f94a2f9c
authored
Apr 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: Rename access2 to access as access is no longer existing.
parent
57bbabb5
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
96 additions
and
96 deletions
+96
-96
include/vlc_access.h
include/vlc_access.h
+4
-4
modules/access/bda/bda.c
modules/access/bda/bda.c
+1
-1
modules/access/cdda.c
modules/access/cdda.c
+1
-1
modules/access/cdda/cdda.c
modules/access/cdda/cdda.c
+1
-1
modules/access/directory.c
modules/access/directory.c
+1
-1
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+1
-1
modules/access/dv.c
modules/access/dv.c
+1
-1
modules/access/dvb/access.c
modules/access/dvb/access.c
+1
-1
modules/access/eyetv.m
modules/access/eyetv.m
+1
-1
modules/access/file.c
modules/access/file.c
+1
-1
modules/access/ftp.c
modules/access/ftp.c
+1
-1
modules/access/gnomevfs.c
modules/access/gnomevfs.c
+1
-1
modules/access/http.c
modules/access/http.c
+1
-1
modules/access/mmap.c
modules/access/mmap.c
+1
-1
modules/access/mms/mms.c
modules/access/mms/mms.c
+1
-1
modules/access/pvr.c
modules/access/pvr.c
+1
-1
modules/access/rtmp/access.c
modules/access/rtmp/access.c
+1
-1
modules/access/rtsp/access.c
modules/access/rtsp/access.c
+1
-1
modules/access/smb.c
modules/access/smb.c
+1
-1
modules/access/tcp.c
modules/access/tcp.c
+1
-1
modules/access/udp.c
modules/access/udp.c
+1
-1
modules/access/v4l2/v4l2.c
modules/access/v4l2/v4l2.c
+5
-5
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+1
-1
modules/access/vcdx/vcd.c
modules/access/vcdx/vcd.c
+1
-1
modules/access_filter/dump.c
modules/access_filter/dump.c
+1
-1
modules/access_filter/timeshift.c
modules/access_filter/timeshift.c
+3
-3
modules/misc/dummy/dummy.c
modules/misc/dummy/dummy.c
+1
-1
src/input/access.c
src/input/access.c
+12
-12
src/input/input.c
src/input/input.c
+18
-18
src/input/input_internal.h
src/input/input_internal.h
+4
-4
src/input/stream.c
src/input/stream.c
+25
-25
src/libvlc-module.c
src/libvlc-module.c
+1
-1
No files found.
include/vlc_access.h
View file @
f94a2f9c
...
...
@@ -117,20 +117,20 @@ struct access_t
access_sys_t
*
p_sys
;
};
static
inline
int
access
2
_vaControl
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
static
inline
int
access_vaControl
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
if
(
!
p_access
)
return
VLC_EGENERIC
;
assert
(
p_access
->
pf_control
);
return
p_access
->
pf_control
(
p_access
,
i_query
,
args
);
}
static
inline
int
access
2
_Control
(
access_t
*
p_access
,
int
i_query
,
...
)
static
inline
int
access_Control
(
access_t
*
p_access
,
int
i_query
,
...
)
{
va_list
args
;
int
i_result
;
va_start
(
args
,
i_query
);
i_result
=
access
2
_vaControl
(
p_access
,
i_query
,
args
);
i_result
=
access_vaControl
(
p_access
,
i_query
,
args
);
va_end
(
args
);
return
i_result
;
}
...
...
@@ -138,7 +138,7 @@ static inline int access2_Control( access_t *p_access, int i_query, ... )
static
inline
char
*
access_GetContentType
(
access_t
*
p_access
)
{
char
*
res
;
if
(
access
2
_Control
(
p_access
,
ACCESS_GET_CONTENT_TYPE
,
&
res
)
)
if
(
access_Control
(
p_access
,
ACCESS_GET_CONTENT_TYPE
,
&
res
)
)
return
NULL
;
return
res
;
}
...
...
modules/access/bda/bda.c
View file @
f94a2f9c
...
...
@@ -249,7 +249,7 @@ vlc_module_begin();
true
);
change_integer_list
(
i_hierarchy_list
,
ppsz_hierarchy_text
,
0
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"dvb"
);
/* Generic name */
add_shortcut
(
"dvb-s"
);
/* Satellite */
...
...
modules/access/cdda.c
View file @
f94a2f9c
...
...
@@ -68,7 +68,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_shortname
(
_
(
"Audio CD"
));
set_description
(
_
(
"Audio CD input"
)
);
set_capability
(
"access
2
"
,
10
);
set_capability
(
"access"
,
10
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
set_callbacks
(
Open
,
Close
);
...
...
modules/access/cdda/cdda.c
View file @
f94a2f9c
...
...
@@ -111,7 +111,7 @@ static const char *psz_paranoia_list_text[] = { N_("none"), N_("overlap"),
vlc_module_begin
();
add_usage_hint
(
N_
(
"cddax://[device-or-file][@[T]track]"
)
);
set_description
(
_
(
"Compact Disc Digital Audio (CD-DA) input"
)
);
set_capability
(
"access
2
"
,
10
/* compare with priority of cdda */
);
set_capability
(
"access"
,
10
/* compare with priority of cdda */
);
set_shortname
(
_
(
"Audio Compact Disc"
));
set_callbacks
(
CDDAOpen
,
CDDAClose
);
add_shortcut
(
"cddax"
);
...
...
modules/access/directory.c
View file @
f94a2f9c
...
...
@@ -94,7 +94,7 @@ vlc_module_begin();
set_shortname
(
_
(
"Directory"
)
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
set_description
(
_
(
"Standard filesystem directory input"
)
);
set_capability
(
"access
2
"
,
55
);
set_capability
(
"access"
,
55
);
add_shortcut
(
"directory"
);
add_shortcut
(
"dir"
);
add_shortcut
(
"file"
);
...
...
modules/access/dshow/dshow.cpp
View file @
f94a2f9c
...
...
@@ -229,7 +229,7 @@ vlc_module_begin();
add_submodule
();
set_description
(
_
(
"DirectShow input"
)
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
set_callbacks
(
AccessOpen
,
AccessClose
);
vlc_module_end
();
...
...
modules/access/dv.c
View file @
f94a2f9c
...
...
@@ -78,7 +78,7 @@ vlc_module_begin();
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_integer
(
"dv-caching"
,
60000
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"dv"
);
add_shortcut
(
"dv1394"
);
add_shortcut
(
"raw1394"
);
...
...
modules/access/dvb/access.c
View file @
f94a2f9c
...
...
@@ -256,7 +256,7 @@ vlc_module_begin();
true
);
#endif
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"dvb"
);
/* Generic name */
add_shortcut
(
"dvb-s"
);
/* Satellite */
...
...
modules/access/eyetv.m
View file @
f94a2f9c
...
...
@@ -63,7 +63,7 @@ vlc_module_begin();
add_integer
(
"eyetv-channel"
,
0
,
NULL
,
CHANNEL_TEXT
,
CHANNEL_LONGTEXT
,
false
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"eyetv"
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
...
...
modules/access/file.c
View file @
f94a2f9c
...
...
@@ -92,7 +92,7 @@ vlc_module_begin();
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_integer
(
"file-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
);
add_obsolete_string
(
"file-cat"
);
set_capability
(
"access
2
"
,
50
);
set_capability
(
"access"
,
50
);
add_shortcut
(
"file"
);
add_shortcut
(
"stream"
);
add_shortcut
(
"kfir"
);
...
...
modules/access/ftp.c
View file @
f94a2f9c
...
...
@@ -70,7 +70,7 @@ static void OutClose( vlc_object_t * );
vlc_module_begin
();
set_shortname
(
"FTP"
);
set_description
(
_
(
"FTP input"
)
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_integer
(
"ftp-caching"
,
2
*
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
...
...
modules/access/gnomevfs.c
View file @
f94a2f9c
...
...
@@ -54,7 +54,7 @@ vlc_module_begin();
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_integer
(
"gnomevfs-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
);
set_capability
(
"access
2
"
,
10
);
set_capability
(
"access"
,
10
);
add_shortcut
(
"gnomevfs"
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
...
...
modules/access/http.c
View file @
f94a2f9c
...
...
@@ -85,7 +85,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_description
(
_
(
"HTTP input"
)
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
set_shortname
(
_
(
"HTTP(S)"
)
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
...
...
modules/access/mmap.c
View file @
f94a2f9c
...
...
@@ -54,7 +54,7 @@ vlc_module_begin();
set_description
(
_
(
"Memory-mapped file input"
));
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
set_capability
(
"access
2
"
,
52
);
set_capability
(
"access"
,
52
);
add_shortcut
(
"file"
);
set_callbacks
(
Open
,
Close
);
...
...
modules/access/mms/mms.c
View file @
f94a2f9c
...
...
@@ -71,7 +71,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_shortname
(
"MMS"
);
set_description
(
_
(
"Microsoft Media Server (MMS) input"
)
);
set_capability
(
"access
2
"
,
-
1
);
set_capability
(
"access"
,
-
1
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
...
...
modules/access/pvr.c
View file @
f94a2f9c
...
...
@@ -128,7 +128,7 @@ vlc_module_begin();
set_description
(
_
(
"IVTV MPEG Encoding cards input"
)
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"pvr"
);
add_integer
(
"pvr-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
...
...
modules/access/rtmp/access.c
View file @
f94a2f9c
...
...
@@ -56,7 +56,7 @@ vlc_module_begin();
add_integer
(
"rtmp-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
);
set_capability
(
"access
2
"
,
10
);
set_capability
(
"access"
,
10
);
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"rtmp"
);
vlc_module_end
();
...
...
modules/access/rtsp/access.c
View file @
f94a2f9c
...
...
@@ -54,7 +54,7 @@ vlc_module_begin();
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_integer
(
"realrtsp-caching"
,
3000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
);
set_capability
(
"access
2
"
,
10
);
set_capability
(
"access"
,
10
);
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"realrtsp"
);
add_shortcut
(
"rtsp"
);
...
...
modules/access/smb.c
View file @
f94a2f9c
...
...
@@ -77,7 +77,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_shortname
(
"SMB"
);
set_description
(
_
(
"SMB input"
)
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_integer
(
"smb-caching"
,
2
*
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
...
...
modules/access/tcp.c
View file @
f94a2f9c
...
...
@@ -54,7 +54,7 @@ vlc_module_begin();
add_integer
(
"tcp-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"tcp"
);
set_callbacks
(
Open
,
Close
);
vlc_module_end
();
...
...
modules/access/udp.c
View file @
f94a2f9c
...
...
@@ -83,7 +83,7 @@ vlc_module_begin();
add_integer
(
"rtp-late"
,
100
,
NULL
,
RTP_LATE_TEXT
,
RTP_LATE_LONGTEXT
,
true
);
add_obsolete_bool
(
"udp-auto-mtu"
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
add_shortcut
(
"udp"
);
add_shortcut
(
"udpstream"
);
add_shortcut
(
"udp4"
);
...
...
modules/access/v4l2/v4l2.c
View file @
f94a2f9c
...
...
@@ -379,7 +379,7 @@ vlc_module_begin();
add_submodule
();
add_shortcut
(
"v4l2c"
);
set_description
(
_
(
"Video4Linux2 Compressed A/V"
)
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
/* use these when open as access_demux fails; VLC will use another demux */
set_callbacks
(
AccessOpen
,
AccessClose
);
...
...
@@ -1165,7 +1165,7 @@ static void CommonClose( vlc_object_t *p_this, demux_sys_t *p_sys )
}
/*****************************************************************************
* AccessOpen: opens v4l2 device, access
2
callback
* AccessOpen: opens v4l2 device, access callback
*****************************************************************************
*
* url: <video device>::::
...
...
@@ -1247,7 +1247,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
}
/*****************************************************************************
* AccessControl: access
2
callback
* AccessControl: access callback
*****************************************************************************/
static
int
AccessControl
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
...
...
@@ -1306,7 +1306,7 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
}
/*****************************************************************************
* AccessRead: access
2
callback
* AccessRead: access callback
******************************************************************************/
static
ssize_t
AccessRead
(
access_t
*
p_access
,
uint8_t
*
p_buffer
,
size_t
i_len
)
{
...
...
@@ -2047,7 +2047,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
}
if
(
i
==
ARRAY_SIZE
(
p_chroma_fallbacks
)
)
{
msg_Warn
(
p_demux
,
"Could not select any of the default chromas; attempting to open as MPEG encoder card (access
2
)"
);
msg_Warn
(
p_demux
,
"Could not select any of the default chromas; attempting to open as MPEG encoder card (access)"
);
goto
open_failed
;
}
}
...
...
modules/access/vcd/vcd.c
View file @
f94a2f9c
...
...
@@ -49,7 +49,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_shortname
(
_
(
"VCD"
));
set_description
(
_
(
"VCD input"
)
);
set_capability
(
"access
2
"
,
60
);
set_capability
(
"access"
,
60
);
set_callbacks
(
Open
,
Close
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
...
...
modules/access/vcdx/vcd.c
View file @
f94a2f9c
...
...
@@ -102,7 +102,7 @@ vlc_module_begin();
add_shortcut
(
"vcdx"
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
set_capability
(
"access
2
"
,
55
/* slightly lower than vcd */
);
set_capability
(
"access"
,
55
/* slightly lower than vcd */
);
set_callbacks
(
VCDOpen
,
VCDClose
);
/* Configuration options */
...
...
modules/access_filter/dump.c
View file @
f94a2f9c
...
...
@@ -91,7 +91,7 @@ static int Open (vlc_object_t *obj)
if
(
!
var_CreateGetBool
(
access
,
"dump-force"
))
{
bool
b
;
if
((
access
2
_Control
(
src
,
ACCESS_CAN_FASTSEEK
,
&
b
)
==
0
)
&&
b
)
if
((
access_Control
(
src
,
ACCESS_CAN_FASTSEEK
,
&
b
)
==
0
)
&&
b
)
{
msg_Dbg
(
obj
,
"dump filter useless"
);
return
VLC_EGENERIC
;
...
...
modules/access_filter/timeshift.c
View file @
f94a2f9c
...
...
@@ -137,14 +137,14 @@ static int Open( vlc_object_t *p_this )
else
{
/* Only work with not pace controled access */
if
(
access
2
_Control
(
p_src
,
ACCESS_CAN_CONTROL_PACE
,
&
b_bool
)
||
if
(
access_Control
(
p_src
,
ACCESS_CAN_CONTROL_PACE
,
&
b_bool
)
||
b_bool
)
{
msg_Dbg
(
p_src
,
"ACCESS_CAN_CONTROL_PACE: timeshift useless"
);
return
VLC_EGENERIC
;
}
/* Refuse access that can be paused */
if
(
access
2
_Control
(
p_src
,
ACCESS_CAN_PAUSE
,
&
b_bool
)
||
b_bool
)
if
(
access_Control
(
p_src
,
ACCESS_CAN_PAUSE
,
&
b_bool
)
||
b_bool
)
{
msg_Dbg
(
p_src
,
"ACCESS_CAN_PAUSE: timeshift useless"
);
return
VLC_EGENERIC
;
...
...
@@ -550,7 +550,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* Forward everything else to the source access */
default:
return
access
2
_vaControl
(
p_access
->
p_source
,
i_query
,
args
);
return
access_vaControl
(
p_access
->
p_source
,
i_query
,
args
);
}
return
VLC_SUCCESS
;
}
...
...
modules/misc/dummy/dummy.c
View file @
f94a2f9c
...
...
@@ -69,7 +69,7 @@ vlc_module_begin();
#endif
add_submodule
();
set_description
(
_
(
"Dummy access function"
)
);
set_capability
(
"access
2
"
,
0
);
set_capability
(
"access"
,
0
);
set_callbacks
(
E_
(
OpenAccess
),
NULL
);
add_submodule
();
set_description
(
_
(
"Dummy demux function"
)
);
...
...
src/input/access.c
View file @
f94a2f9c
...
...
@@ -30,9 +30,9 @@
#include "input_internal.h"
/*****************************************************************************
* access
2
_InternalNew:
* access_InternalNew:
*****************************************************************************/
static
access_t
*
access
2
_InternalNew
(
vlc_object_t
*
p_obj
,
const
char
*
psz_access
,
static
access_t
*
access_InternalNew
(
vlc_object_t
*
p_obj
,
const
char
*
psz_access
,
const
char
*
psz_demux
,
const
char
*
psz_path
,
access_t
*
p_source
)
{
...
...
@@ -75,7 +75,7 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
vlc_object_attach
(
p_access
,
p_obj
);
p_access
->
p_module
=
module_Need
(
p_access
,
p_source
?
"access_filter"
:
"access
2
"
,
module_Need
(
p_access
,
p_source
?
"access_filter"
:
"access"
,
psz_access
,
true
);
if
(
p_access
->
p_module
==
NULL
)
...
...
@@ -93,29 +93,29 @@ static access_t *access2_InternalNew( vlc_object_t *p_obj, const char *psz_acces
}
/*****************************************************************************
* access
2
_New:
* access_New:
*****************************************************************************/
access_t
*
__access
2
_New
(
vlc_object_t
*
p_obj
,
const
char
*
psz_access
,
access_t
*
__access_New
(
vlc_object_t
*
p_obj
,
const
char
*
psz_access
,
const
char
*
psz_demux
,
const
char
*
psz_path
)
{
return
access
2
_InternalNew
(
p_obj
,
psz_access
,
psz_demux
,
return
access_InternalNew
(
p_obj
,
psz_access
,
psz_demux
,
psz_path
,
NULL
);
}
/*****************************************************************************
* access
2
_FilterNew:
* access_FilterNew:
*****************************************************************************/
access_t
*
access
2
_FilterNew
(
access_t
*
p_source
,
const
char
*
psz_access_filter
)
access_t
*
access_FilterNew
(
access_t
*
p_source
,
const
char
*
psz_access_filter
)
{
return
access
2
_InternalNew
(
VLC_OBJECT
(
p_source
),
psz_access_filter
,
return
access_InternalNew
(
VLC_OBJECT
(
p_source
),
psz_access_filter
,
p_source
->
psz_demux
,
p_source
->
psz_path
,
p_source
);
}
/*****************************************************************************
* access
2
_Delete:
* access_Delete:
*****************************************************************************/
void
access
2
_Delete
(
access_t
*
p_access
)
void
access_Delete
(
access_t
*
p_access
)
{
module_Unneed
(
p_access
,
p_access
->
p_module
);
vlc_object_detach
(
p_access
);
...
...
@@ -126,7 +126,7 @@ void access2_Delete( access_t *p_access )
if
(
p_access
->
p_source
)
{
access
2
_Delete
(
p_access
->
p_source
);
access_Delete
(
p_access
->
p_source
);
}
vlc_object_release
(
p_access
);
...
...
src/input/input.c
View file @
f94a2f9c
...
...
@@ -1180,7 +1180,7 @@ static int Init( input_thread_t * p_input )
if
(
!
p_input
->
b_preparsing
)
{
if
(
p_input
->
p
->
input
.
p_access
)
access
2
_Control
(
p_input
->
p
->
input
.
p_access
,
ACCESS_GET_META
,
access_Control
(
p_input
->
p
->
input
.
p_access
,
ACCESS_GET_META
,
p_meta
);
/* Get meta data from slave input */
...
...
@@ -1189,7 +1189,7 @@ static int Init( input_thread_t * p_input )
DemuxMeta
(
p_input
,
p_meta
,
p_input
->
p
->
slave
[
i
]
->
p_demux
);
if
(
p_input
->
p
->
slave
[
i
]
->
p_access
)
{
access
2
_Control
(
p_input
->
p
->
slave
[
i
]
->
p_access
,
access_Control
(
p_input
->
p
->
slave
[
i
]
->
p_access
,
ACCESS_GET_META
,
p_meta
);
}
}
...
...
@@ -1618,7 +1618,7 @@ static bool Control( input_thread_t *p_input, int i_type,
{
int
i_ret
;
if
(
p_input
->
p
->
input
.
p_access
)
i_ret
=
access
2
_Control
(
p_input
->
p
->
input
.
p_access
,
i_ret
=
access_Control
(
p_input
->
p
->
input
.
p_access
,
ACCESS_SET_PAUSE_STATE
,
false
);
else
i_ret
=
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
...
...
@@ -1649,7 +1649,7 @@ static bool Control( input_thread_t *p_input, int i_type,
{
int
i_ret
;
if
(
p_input
->
p
->
input
.
p_access
)
i_ret
=
access
2
_Control
(
p_input
->
p
->
input
.
p_access
,
i_ret
=
access_Control
(
p_input
->
p
->
input
.
p_access
,
ACCESS_SET_PAUSE_STATE
,
true
);
else
i_ret
=
demux_Control
(
p_input
->
p
->
input
.
p_demux
,
...
...
@@ -1863,7 +1863,7 @@ static bool Control( input_thread_t *p_input, int i_type,
{
input_EsOutChangePosition
(
p_input
->
p
->
p_es_out
);
access
2
_Control
(
p_access
,
ACCESS_SET_TITLE
,
i_title
);
access_Control
(
p_access
,
ACCESS_SET_TITLE
,
i_title
);
stream_AccessReset
(
p_input
->
p
->
input
.
p_stream
);
}
}
...
...
@@ -1939,7 +1939,7 @@ static bool Control( input_thread_t *p_input, int i_type,
{
input_EsOutChangePosition
(
p_input
->
p
->
p_es_out
);
access
2
_Control
(
p_access
,
ACCESS_SET_SEEKPOINT
,
access_Control
(
p_access
,
ACCESS_SET_SEEKPOINT
,
i_seekpoint
);
stream_AccessReset
(
p_input
->
p
->
input
.
p_stream
);
}
...
...
@@ -1980,7 +1980,7 @@ static bool Control( input_thread_t *p_input, int i_type,
/* Get meta (access and demux) */
p_meta
=
vlc_meta_New
();
access
2
_Control
(
slave
->
p_access
,
ACCESS_GET_META
,
access_Control
(
slave
->
p_access
,
ACCESS_GET_META
,
p_meta
);
demux_Control
(
slave
->
p_demux
,
DEMUX_GET_META
,
p_meta
);
InputUpdateMeta
(
p_input
,
p_meta
);
...
...
@@ -2089,7 +2089,7 @@ static int UpdateFromAccess( input_thread_t *p_input )
{
/* TODO maybe multi - access ? */
vlc_meta_t
*
p_meta
=
vlc_meta_New
();
access
2
_Control
(
p_input
->
p
->
input
.
p_access
,
ACCESS_GET_META
,
p_meta
);
access_Control
(
p_input
->
p
->
input
.
p_access
,
ACCESS_GET_META
,
p_meta
);
InputUpdateMeta
(
p_input
,
p_meta
);
var_SetInteger
(
pl_Get
(
p_input
),
"item-change"
,
p_input
->
p
->
input
.
p_item
->
i_id
);
p_access
->
info
.
i_update
&=
~
INPUT_UPDATE_META
;
...
...
@@ -2300,7 +2300,7 @@ static int InputSourceInit( input_thread_t *p_input,
input_ChangeState
(
p_input
,
OPENING_S
);
/* Now try a real access */
in
->
p_access
=
access
2
_New
(
p_input
,
psz_access
,
psz_demux
,
psz_path
);
in
->
p_access
=
access_New
(
p_input
,
psz_access
,
psz_demux
,
psz_path
);
/* Access failed, URL encoded ? */
if
(
in
->
p_access
==
NULL
&&
strchr
(
psz_path
,
'%'
)
)
...
...
@@ -2310,7 +2310,7 @@ static int InputSourceInit( input_thread_t *p_input,
msg_Dbg
(
p_input
,
"retrying with access `%s' demux `%s' path `%s'"
,
psz_access
,
psz_demux
,
psz_path
);
in
->
p_access
=
access
2
_New
(
p_input
,
in
->
p_access
=
access_New
(
p_input
,
psz_access
,
psz_demux
,
psz_path
);
}
if
(
in
->
p_access
==
NULL
)
...
...
@@ -2334,7 +2334,7 @@ static int InputSourceInit( input_thread_t *p_input,
if
(
end
)
*
end
++
=
'\0'
;
in
->
p_access
=
access
2
_FilterNew
(
in
->
p_access
,
psz
);
in
->
p_access
=
access_FilterNew
(
in
->
p_access
,
psz
);
if
(
in
->
p_access
==
NULL
)
{
in
->
p_access
=
p_access
;
...
...
@@ -2349,12 +2349,12 @@ static int InputSourceInit( input_thread_t *p_input,
/* Get infos from access */
if
(
!
p_input
->
b_preparsing
)
{
access
2
_Control
(
in
->
p_access
,
access_Control
(
in
->
p_access
,
ACCESS_GET_PTS_DELAY
,
&
i_pts_delay
);
p_input
->
i_pts_delay
=
__MAX
(
p_input
->
i_pts_delay
,
i_pts_delay
);
in
->
b_title_demux
=
false
;
if
(
access
2
_Control
(
in
->
p_access
,
ACCESS_GET_TITLE_INFO
,
if
(
access_Control
(
in
->
p_access
,
ACCESS_GET_TITLE_INFO
,
&
in
->
title
,
&
in
->
i_title
,
&
in
->
i_title_offset
,
&
in
->
i_seekpoint_offset
)
)
...
...
@@ -2362,15 +2362,15 @@ static int InputSourceInit( input_thread_t *p_input,
in
->
i_title
=
0
;
in
->
title
=
NULL
;
}
access
2
_Control
(
in
->
p_access
,
ACCESS_CAN_CONTROL_PACE
,
access_Control
(
in
->
p_access
,
ACCESS_CAN_CONTROL_PACE
,
&
in
->
b_can_pace_control
);
in
->
b_can_rate_control
=
in
->
b_can_pace_control
;
in
->
b_rescale_ts
=
true
;
access
2
_Control
(
in
->
p_access
,
ACCESS_CAN_PAUSE
,
access_Control
(
in
->
p_access
,
ACCESS_CAN_PAUSE
,
&
in
->
b_can_pause
);
var_SetBool
(
p_input
,
"can-pause"
,
in
->
b_can_pause
);
access
2
_Control
(
in
->
p_access
,
ACCESS_CAN_SEEK
,
access_Control
(
in
->
p_access
,
ACCESS_CAN_SEEK
,
&
val
.
b_bool
);
var_Set
(
p_input
,
"seekable"
,
val
);
}
...
...
@@ -2476,7 +2476,7 @@ error:
stream_Delete
(
in
->
p_stream
);
if
(
in
->
p_access
)
access
2
_Delete
(
in
->
p_access
);
access_Delete
(
in
->
p_access
);
return
VLC_EGENERIC
;
}
...
...
@@ -2495,7 +2495,7 @@ static void InputSourceClean( input_source_t *in )
stream_Delete
(
in
->
p_stream
);
if
(
in
->
p_access
)
access
2
_Delete
(
in
->
p_access
);
access_Delete
(
in
->
p_access
);
if
(
in
->
i_title
>
0
)
{
...
...
src/input/input_internal.h
View file @
f94a2f9c
...
...
@@ -397,12 +397,12 @@ static inline void input_ChangeState( input_thread_t *p_input, int state )
/* Access */
#define access
2_New( a, b, c, d ) __access2
_New(VLC_OBJECT(a), b, c, d )
access_t
*
__access
2
_New
(
vlc_object_t
*
p_obj
,
const
char
*
psz_access
,
#define access
_New( a, b, c, d ) __access
_New(VLC_OBJECT(a), b, c, d )
access_t
*
__access_New
(
vlc_object_t
*
p_obj
,
const
char
*
psz_access
,
const
char
*
psz_demux
,
const
char
*
psz_path
);
access_t
*
access
2
_FilterNew
(
access_t
*
p_source
,
access_t
*
access_FilterNew
(
access_t
*
p_source
,
const
char
*
psz_access_filter
);
void
access
2
_Delete
(
access_t
*
);
void
access_Delete
(
access_t
*
);
/* Demuxer */
#include <vlc_demux.h>
...
...
src/input/stream.c
View file @
f94a2f9c
...
...
@@ -206,7 +206,7 @@ stream_t *__stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
MRLSplit
(
psz_dup
,
&
psz_access
,
&
psz_demux
,
&
psz_path
);
/* Now try a real access */
p_access
=
access
2
_New
(
p_parent
,
psz_access
,
psz_demux
,
psz_path
);
p_access
=
access_New
(
p_parent
,
psz_access
,
psz_demux
,
psz_path
);
if
(
p_access
==
NULL
)
{
...
...
@@ -216,7 +216,7 @@ stream_t *__stream_UrlNew( vlc_object_t *p_parent, const char *psz_url )
if
(
!
(
p_res
=
stream_AccessNew
(
p_access
,
true
)
)
)
{
access
2
_Delete
(
p_access
);
access_Delete
(
p_access
);
return
NULL
;
}
...
...
@@ -258,7 +258,7 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
p_sys
->
i_pos
=
p_access
->
info
.
i_pos
;
/* Stats */
access
2
_Control
(
p_access
,
ACCESS_CAN_FASTSEEK
,
&
p_sys
->
stat
.
b_fastseek
);
access_Control
(
p_access
,
ACCESS_CAN_FASTSEEK
,
&
p_sys
->
stat
.
b_fastseek
);
p_sys
->
stat
.
i_bytes
=
0
;
p_sys
->
stat
.
i_read_time
=
0
;
p_sys
->
stat
.
i_read_count
=
0
;
...
...
@@ -304,7 +304,7 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
psz_name
=
strdup
(
psz_name
);
if
(
psz_name
)
{
access_t
*
p_tmp
=
access
2
_New
(
p_access
,
p_access
->
psz_access
,
access_t
*
p_tmp
=
access_New
(
p_access
,
p_access
->
psz_access
,
""
,
psz_name
);
if
(
!
p_tmp
)
...
...
@@ -327,7 +327,7 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
p_entry
->
psz_path
=
psz_name
;
TAB_APPEND
(
p_sys
->
i_list
,
p_sys
->
list
,
p_entry
);
access
2
_Delete
(
p_tmp
);
access_Delete
(
p_tmp
);
}
psz_name
=
psz_parser
;
...
...
@@ -380,7 +380,7 @@ stream_t *stream_AccessNew( access_t *p_access, bool b_quick )
goto
error
;
}
p_sys
->
stream
.
i_used
=
0
;
access
2
_Control
(
p_access
,
ACCESS_GET_MTU
,
access_Control
(
p_access
,
ACCESS_GET_MTU
,
&
p_sys
->
stream
.
i_read_size
);
if
(
p_sys
->
stream
.
i_read_size
<=
0
)
p_sys
->
stream
.
i_read_size
=
STREAM_READ_ATONCE
;
...
...
@@ -442,7 +442,7 @@ static void AStreamDestroy( stream_t *s )
free
(
p_sys
->
p_peek
);
if
(
p_sys
->
p_list_access
&&
p_sys
->
p_list_access
!=
p_sys
->
p_access
)
access
2
_Delete
(
p_sys
->
p_list_access
);
access_Delete
(
p_sys
->
p_list_access
);
while
(
p_sys
->
i_list
--
)
{
...
...
@@ -460,7 +460,7 @@ static void UStreamDestroy( stream_t *s )
access_t
*
p_access
=
(
access_t
*
)
vlc_object_find
(
s
,
VLC_OBJECT_ACCESS
,
FIND_PARENT
);
AStreamDestroy
(
s
);
vlc_object_release
(
p_access
);
access
2
_Delete
(
p_access
);
access_Delete
(
p_access
);
}
/****************************************************************************
...
...
@@ -556,12 +556,12 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
case
STREAM_CAN_SEEK
:
p_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
p_bool
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
p_bool
);
break
;
case
STREAM_CAN_FASTSEEK
:
p_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
access
2
_Control
(
p_access
,
ACCESS_CAN_FASTSEEK
,
p_bool
);
access_Control
(
p_access
,
ACCESS_CAN_FASTSEEK
,
p_bool
);
break
;
case
STREAM_GET_POSITION
:
...
...
@@ -589,10 +589,10 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
"DON'T USE STREAM_CONTROL_ACCESS !!!"
);
return
VLC_EGENERIC
;
}
return
access
2
_vaControl
(
p_access
,
i_int
,
args
);
return
access_vaControl
(
p_access
,
i_int
,
args
);
case
STREAM_GET_CONTENT_TYPE
:
return
access
2
_Control
(
p_access
,
ACCESS_GET_CONTENT_TYPE
,
return
access_Control
(
p_access
,
ACCESS_GET_CONTENT_TYPE
,
va_arg
(
args
,
char
**
)
);
default:
...
...
@@ -700,7 +700,7 @@ static int AStreamReadBlock( stream_t *s, void *p_read, int i_read )
stream_sys_t
*
p_sys
=
s
->
p_sys
;
access_t
*
p_access
=
p_sys
->
p_access
;
bool
b_aseek
;
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
if
(
b_aseek
)
return
AStreamSeekBlock
(
s
,
p_sys
->
i_pos
+
i_read
)
?
0
:
i_read
;
}
...
...
@@ -840,7 +840,7 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
if
(
i_offset
<
0
)
{
bool
b_aseek
;
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
if
(
!
b_aseek
)
{
...
...
@@ -854,8 +854,8 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
{
bool
b_aseek
,
b_aseekfast
;
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
access
2
_Control
(
p_access
,
ACCESS_CAN_FASTSEEK
,
&
b_aseekfast
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
access_Control
(
p_access
,
ACCESS_CAN_FASTSEEK
,
&
b_aseekfast
);
if
(
!
b_aseek
)
{
...
...
@@ -1026,7 +1026,7 @@ static int AStreamReadStream( stream_t *s, void *p_read, int i_read )
stream_sys_t
*
p_sys
=
s
->
p_sys
;
access_t
*
p_access
=
p_sys
->
p_access
;
bool
b_aseek
;
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
if
(
b_aseek
)
return
AStreamSeekStream
(
s
,
p_sys
->
i_pos
+
i_read
)
?
0
:
i_read
;
}
...
...
@@ -1187,7 +1187,7 @@ static int AStreamSeekStream( stream_t *s, int64_t i_pos )
return
VLC_SUCCESS
;
}
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_aseek
);
if
(
!
b_aseek
)
{
/* We can't do nothing */
...
...
@@ -1228,7 +1228,7 @@ static int AStreamSeekStream( stream_t *s, int64_t i_pos )
}
}
access
2
_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_afastseek
);
access_Control
(
p_access
,
ACCESS_CAN_SEEK
,
&
b_afastseek
);
/* FIXME compute seek cost (instead of static 'stupid' value) */
i_maxth
=
__MIN
(
p_sys
->
stream
.
i_read_size
,
STREAM_READ_ATONCE
/
2
);
if
(
!
b_afastseek
)
...
...
@@ -1709,12 +1709,12 @@ static int AReadStream( stream_t *s, void *p_read, int i_read )
msg_Dbg
(
s
,
"opening input `%s'"
,
psz_name
);
p_list_access
=
access
2
_New
(
s
,
p_access
->
psz_access
,
""
,
psz_name
);
p_list_access
=
access_New
(
s
,
p_access
->
psz_access
,
""
,
psz_name
);
if
(
!
p_list_access
)
return
0
;
if
(
p_sys
->
p_list_access
!=
p_access
)
access
2
_Delete
(
p_sys
->
p_list_access
);
access_Delete
(
p_sys
->
p_list_access
);
p_sys
->
p_list_access
=
p_list_access
;
...
...
@@ -1777,12 +1777,12 @@ static block_t *AReadBlock( stream_t *s, bool *pb_eof )
msg_Dbg
(
s
,
"opening input `%s'"
,
psz_name
);
p_list_access
=
access
2
_New
(
s
,
p_access
->
psz_access
,
""
,
psz_name
);
p_list_access
=
access_New
(
s
,
p_access
->
psz_access
,
""
,
psz_name
);
if
(
!
p_list_access
)
return
0
;
if
(
p_sys
->
p_list_access
!=
p_access
)
access
2
_Delete
(
p_sys
->
p_list_access
);
access_Delete
(
p_sys
->
p_list_access
);
p_sys
->
p_list_access
=
p_list_access
;
...
...
@@ -1832,7 +1832,7 @@ static int ASeek( stream_t *s, int64_t i_pos )
if
(
i
!=
p_sys
->
i_list_index
&&
i
!=
0
)
{
p_list_access
=
access
2
_New
(
s
,
p_access
->
psz_access
,
""
,
psz_name
);
access_New
(
s
,
p_access
->
psz_access
,
""
,
psz_name
);
}
else
if
(
i
!=
p_sys
->
i_list_index
)
{
...
...
@@ -1842,7 +1842,7 @@ static int ASeek( stream_t *s, int64_t i_pos )
if
(
p_list_access
)
{
if
(
p_sys
->
p_list_access
!=
p_access
)
access
2
_Delete
(
p_sys
->
p_list_access
);
access_Delete
(
p_sys
->
p_list_access
);
p_sys
->
p_list_access
=
p_list_access
;
}
...
...
src/libvlc-module.c
View file @
f94a2f9c
...
...
@@ -1701,7 +1701,7 @@ vlc_module_begin();
set_subcategory
(
SUBCAT_INPUT_ACCESS
);
add_category_hint
(
N_
(
"Input"
),
INPUT_CAT_LONGTEXT
,
false
);
add_module
(
"access"
,
"access
2
"
,
NULL
,
NULL
,
ACCESS_TEXT
,
add_module
(
"access"
,
"access"
,
NULL
,
NULL
,
ACCESS_TEXT
,
ACCESS_LONGTEXT
,
true
);
set_subcategory
(
SUBCAT_INPUT_ACCESS_FILTER
);
...
...
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