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
6d4bc50f
Commit
6d4bc50f
authored
May 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename access_t.psz_path to psz_location
parent
370b6cbb
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
51 additions
and
48 deletions
+51
-48
include/vlc_access.h
include/vlc_access.h
+1
-1
modules/access/attachment.c
modules/access/attachment.c
+3
-2
modules/access/avio.c
modules/access/avio.c
+3
-2
modules/access/bda/bda.c
modules/access/bda/bda.c
+1
-1
modules/access/cdda.c
modules/access/cdda.c
+1
-1
modules/access/directory.c
modules/access/directory.c
+1
-1
modules/access/dvb/access.c
modules/access/dvb/access.c
+1
-1
modules/access/ftp.c
modules/access/ftp.c
+1
-1
modules/access/gnomevfs.c
modules/access/gnomevfs.c
+2
-2
modules/access/http.c
modules/access/http.c
+4
-4
modules/access/imem.c
modules/access/imem.c
+1
-1
modules/access/mms/mmsh.c
modules/access/mms/mmsh.c
+1
-1
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+1
-1
modules/access/mtp.c
modules/access/mtp.c
+2
-2
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/sftp.c
modules/access/sftp.c
+2
-2
modules/access/smb.c
modules/access/smb.c
+8
-7
modules/access/tcp.c
modules/access/tcp.c
+1
-1
modules/access/udp.c
modules/access/udp.c
+1
-1
modules/access/v4l2.c
modules/access/v4l2.c
+1
-1
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+3
-3
modules/access/zip/zipaccess.c
modules/access/zip/zipaccess.c
+4
-4
src/input/access.c
src/input/access.c
+3
-3
src/input/stream.c
src/input/stream.c
+2
-2
No files found.
include/vlc_access.h
View file @
6d4bc50f
...
@@ -80,7 +80,7 @@ struct access_t
...
@@ -80,7 +80,7 @@ struct access_t
/* Access name (empty if non forced) */
/* Access name (empty if non forced) */
char
*
psz_access
;
char
*
psz_access
;
char
*
psz_
path
;
/**< Location (URL with the scheme stripped) */
char
*
psz_
location
;
/**< Location (URL with the scheme stripped) */
char
*
psz_filepath
;
/**< Local file path (if applicable) */
char
*
psz_filepath
;
/**< Local file path (if applicable) */
/* Access can fill this entry to force a demuxer
/* Access can fill this entry to force a demuxer
...
...
modules/access/attachment.c
View file @
6d4bc50f
...
@@ -73,13 +73,14 @@ static int Open(vlc_object_t *object)
...
@@ -73,13 +73,14 @@ static int Open(vlc_object_t *object)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
input_attachment_t
*
a
;
input_attachment_t
*
a
;
if
(
input_Control
(
input
,
INPUT_GET_ATTACHMENT
,
&
a
,
access
->
psz_
path
))
if
(
input_Control
(
input
,
INPUT_GET_ATTACHMENT
,
&
a
,
access
->
psz_
location
))
a
=
NULL
;
a
=
NULL
;
vlc_object_release
(
input
);
vlc_object_release
(
input
);
if
(
!
a
)
{
if
(
!
a
)
{
msg_Err
(
access
,
"Failed to find the attachment '%s'"
,
access
->
psz_path
);
msg_Err
(
access
,
"Failed to find the attachment '%s'"
,
access
->
psz_location
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/access/avio.c
View file @
6d4bc50f
...
@@ -84,8 +84,9 @@ int OpenAvio(vlc_object_t *object)
...
@@ -84,8 +84,9 @@ int OpenAvio(vlc_object_t *object)
*/
*/
char
*
url
;
char
*
url
;
if
(
!
strcmp
(
access
->
psz_access
,
"avio"
))
if
(
!
strcmp
(
access
->
psz_access
,
"avio"
))
url
=
strdup
(
access
->
psz_path
);
url
=
strdup
(
access
->
psz_location
);
else
if
(
asprintf
(
&
url
,
"%s://%s"
,
access
->
psz_access
,
access
->
psz_path
)
<
0
)
else
if
(
asprintf
(
&
url
,
"%s://%s"
,
access
->
psz_access
,
access
->
psz_location
)
<
0
)
url
=
NULL
;
url
=
NULL
;
if
(
!
url
)
if
(
!
url
)
...
...
modules/access/bda/bda.c
View file @
6d4bc50f
...
@@ -463,7 +463,7 @@ static int ParsePath( access_t *p_access, const char* psz_module,
...
@@ -463,7 +463,7 @@ static int ParsePath( access_t *p_access, const char* psz_module,
}
}
for
(
int
i
=
0
;
i
<
i_param_count
;
i
++
)
for
(
int
i
=
0
;
i
<
i_param_count
;
i
++
)
b_used
[
i
]
=
false
;
b_used
[
i
]
=
false
;
psz_parser
=
p_access
->
psz_
path
;
psz_parser
=
p_access
->
psz_
location
;
if
(
strlen
(
psz_parser
)
<=
0
)
if
(
strlen
(
psz_parser
)
<=
0
)
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
modules/access/cdda.c
View file @
6d4bc50f
...
@@ -493,7 +493,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
...
@@ -493,7 +493,7 @@ static int GetTracks( access_t *p_access, input_item_t *p_current )
msg_Dbg
(
p_access
,
"track[%d] start=%d"
,
i
,
p_sys
->
p_sectors
[
i
]
);
msg_Dbg
(
p_access
,
"track[%d] start=%d"
,
i
,
p_sys
->
p_sectors
[
i
]
);
/* */
/* */
if
(
asprintf
(
&
psz_uri
,
"cdda://%s"
,
p_access
->
psz_
path
)
==
-
1
)
if
(
asprintf
(
&
psz_uri
,
"cdda://%s"
,
p_access
->
psz_
location
)
==
-
1
)
psz_uri
=
NULL
;
psz_uri
=
NULL
;
if
(
asprintf
(
&
psz_opt
,
"cdda-track=%i"
,
i
+
1
)
==
-
1
)
if
(
asprintf
(
&
psz_opt
,
"cdda-track=%i"
,
i
+
1
)
==
-
1
)
psz_opt
=
NULL
;
psz_opt
=
NULL
;
...
...
modules/access/directory.c
View file @
6d4bc50f
...
@@ -118,7 +118,7 @@ int DirInit (access_t *p_access, DIR *handle)
...
@@ -118,7 +118,7 @@ int DirInit (access_t *p_access, DIR *handle)
char
*
uri
;
char
*
uri
;
if
(
!
strcmp
(
p_access
->
psz_access
,
"fd"
))
if
(
!
strcmp
(
p_access
->
psz_access
,
"fd"
))
{
{
if
(
asprintf
(
&
uri
,
"fd://%s"
,
p_access
->
psz_
path
)
==
-
1
)
if
(
asprintf
(
&
uri
,
"fd://%s"
,
p_access
->
psz_
location
)
==
-
1
)
uri
=
NULL
;
uri
=
NULL
;
}
}
else
else
...
...
modules/access/dvb/access.c
View file @
6d4bc50f
...
@@ -913,7 +913,7 @@ static void VarInit( access_t *p_access )
...
@@ -913,7 +913,7 @@ static void VarInit( access_t *p_access )
/* */
/* */
static
int
ParseMRL
(
access_t
*
p_access
)
static
int
ParseMRL
(
access_t
*
p_access
)
{
{
char
*
psz_dup
=
strdup
(
p_access
->
psz_
path
);
char
*
psz_dup
=
strdup
(
p_access
->
psz_
location
);
char
*
psz_parser
=
psz_dup
;
char
*
psz_parser
=
psz_dup
;
char
*
psz_next
;
char
*
psz_next
;
vlc_value_t
val
;
vlc_value_t
val
;
...
...
modules/access/ftp.c
View file @
6d4bc50f
...
@@ -338,7 +338,7 @@ static int InOpen( vlc_object_t *p_this )
...
@@ -338,7 +338,7 @@ static int InOpen( vlc_object_t *p_this )
p_sys
->
out
=
false
;
p_sys
->
out
=
false
;
p_sys
->
directory
=
false
;
p_sys
->
directory
=
false
;
if
(
parseURL
(
&
p_sys
->
url
,
p_access
->
psz_
path
)
)
if
(
parseURL
(
&
p_sys
->
url
,
p_access
->
psz_
location
)
)
goto
exit_error
;
goto
exit_error
;
if
(
Connect
(
p_this
,
p_sys
)
)
if
(
Connect
(
p_this
,
p_sys
)
)
...
...
modules/access/gnomevfs.c
View file @
6d4bc50f
...
@@ -121,11 +121,11 @@ static int Open( vlc_object_t *p_this )
...
@@ -121,11 +121,11 @@ static int Open( vlc_object_t *p_this )
*
(
p_access
->
psz_access
)
!=
'\0'
)
*
(
p_access
->
psz_access
)
!=
'\0'
)
{
{
asprintf
(
&
psz_name
,
"%s://%s"
,
p_access
->
psz_access
,
asprintf
(
&
psz_name
,
"%s://%s"
,
p_access
->
psz_access
,
p_access
->
psz_path
);
p_access
->
psz_location
);
}
}
else
else
{
{
psz_name
=
strdup
(
p_access
->
psz_
path
);
psz_name
=
strdup
(
p_access
->
psz_
location
);
}
}
psz
=
ToLocale
(
psz_name
);
psz
=
ToLocale
(
psz_name
);
psz_expand_tilde
=
gnome_vfs_expand_initial_tilde
(
psz
);
psz_expand_tilde
=
gnome_vfs_expand_initial_tilde
(
psz
);
...
...
modules/access/http.c
View file @
6d4bc50f
...
@@ -320,7 +320,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
...
@@ -320,7 +320,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
http_auth_Init
(
&
p_sys
->
proxy_auth
);
http_auth_Init
(
&
p_sys
->
proxy_auth
);
/* Parse URI - remove spaces */
/* Parse URI - remove spaces */
p
=
psz
=
strdup
(
p_access
->
psz_
path
);
p
=
psz
=
strdup
(
p_access
->
psz_
location
);
while
(
(
p
=
strchr
(
p
,
' '
))
!=
NULL
)
while
(
(
p
=
strchr
(
p
,
' '
))
!=
NULL
)
*
p
=
'+'
;
*
p
=
'+'
;
vlc_UrlParse
(
&
p_sys
->
url
,
psz
,
0
);
vlc_UrlParse
(
&
p_sys
->
url
,
psz
,
0
);
...
@@ -363,7 +363,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
...
@@ -363,7 +363,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
{
{
char
*
buf
;
char
*
buf
;
int
i
;
int
i
;
i
=
asprintf
(
&
buf
,
"%s://%s"
,
psz_access
,
p_access
->
psz_
path
);
i
=
asprintf
(
&
buf
,
"%s://%s"
,
psz_access
,
p_access
->
psz_
location
);
if
(
i
>=
0
)
if
(
i
>=
0
)
{
{
msg_Dbg
(
p_access
,
"asking libproxy about url '%s'"
,
buf
);
msg_Dbg
(
p_access
,
"asking libproxy about url '%s'"
,
buf
);
...
@@ -581,8 +581,8 @@ connect:
...
@@ -581,8 +581,8 @@ connect:
msg_Err
(
p_access
,
"insecure redirection ignored"
);
msg_Err
(
p_access
,
"insecure redirection ignored"
);
goto
error
;
goto
error
;
}
}
free
(
p_access
->
psz_
path
);
free
(
p_access
->
psz_
location
);
p_access
->
psz_
path
=
strdup
(
p_sys
->
psz_location
);
p_access
->
psz_
location
=
strdup
(
p_sys
->
psz_location
);
/* Clean up current Open() run */
/* Clean up current Open() run */
vlc_UrlClean
(
&
p_sys
->
url
);
vlc_UrlClean
(
&
p_sys
->
url
);
http_auth_Reset
(
&
p_sys
->
auth
);
http_auth_Reset
(
&
p_sys
->
auth
);
...
...
modules/access/imem.c
View file @
6d4bc50f
...
@@ -300,7 +300,7 @@ static int OpenAccess(vlc_object_t *object)
...
@@ -300,7 +300,7 @@ static int OpenAccess(vlc_object_t *object)
access_t
*
access
=
(
access_t
*
)
object
;
access_t
*
access
=
(
access_t
*
)
object
;
imem_sys_t
*
sys
;
imem_sys_t
*
sys
;
if
(
OpenCommon
(
object
,
&
sys
,
access
->
psz_
path
))
if
(
OpenCommon
(
object
,
&
sys
,
access
->
psz_
location
))
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
if
(
var_InheritInteger
(
object
,
"imem-cat"
)
!=
4
)
{
if
(
var_InheritInteger
(
object
,
"imem-cat"
)
!=
4
)
{
...
...
modules/access/mms/mmsh.c
View file @
6d4bc50f
...
@@ -137,7 +137,7 @@ int MMSHOpen( access_t *p_access )
...
@@ -137,7 +137,7 @@ int MMSHOpen( access_t *p_access )
}
}
/* open a tcp connection */
/* open a tcp connection */
vlc_UrlParse
(
&
p_sys
->
url
,
p_access
->
psz_
path
,
0
);
vlc_UrlParse
(
&
p_sys
->
url
,
p_access
->
psz_
location
,
0
);
if
(
(
p_sys
->
url
.
psz_host
==
NULL
)
||
if
(
(
p_sys
->
url
.
psz_host
==
NULL
)
||
(
*
p_sys
->
url
.
psz_host
==
'\0'
)
)
(
*
p_sys
->
url
.
psz_host
==
'\0'
)
)
{
{
...
...
modules/access/mms/mmstu.c
View file @
6d4bc50f
...
@@ -106,7 +106,7 @@ int MMSTUOpen( access_t *p_access )
...
@@ -106,7 +106,7 @@ int MMSTUOpen( access_t *p_access )
vlc_mutex_init
(
&
p_sys
->
lock_netwrite
);
vlc_mutex_init
(
&
p_sys
->
lock_netwrite
);
/* *** Parse URL and get server addr/port and path *** */
/* *** Parse URL and get server addr/port and path *** */
vlc_UrlParse
(
&
p_sys
->
url
,
p_access
->
psz_
path
,
0
);
vlc_UrlParse
(
&
p_sys
->
url
,
p_access
->
psz_
location
,
0
);
if
(
p_sys
->
url
.
psz_host
==
NULL
||
*
p_sys
->
url
.
psz_host
==
'\0'
)
if
(
p_sys
->
url
.
psz_host
==
NULL
||
*
p_sys
->
url
.
psz_host
==
'\0'
)
{
{
msg_Err
(
p_access
,
"invalid server name"
);
msg_Err
(
p_access
,
"invalid server name"
);
...
...
modules/access/mtp.c
View file @
6d4bc50f
...
@@ -110,8 +110,8 @@ static int Open( vlc_object_t *p_this )
...
@@ -110,8 +110,8 @@ static int Open( vlc_object_t *p_this )
/* Update default_pts to a suitable value for file access */
/* Update default_pts to a suitable value for file access */
var_Create
(
p_access
,
"file-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_access
,
"file-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
if
(
sscanf
(
p_access
->
psz_
path
,
"%"
SCNu32
":%"
SCNu8
":%"
SCNu16
":%d"
,
&
i_bus
,
if
(
sscanf
(
p_access
->
psz_
location
,
"%"
SCNu32
":%"
SCNu8
":%"
SCNu16
":%d"
,
&
i_dev
,
&
i_product_id
,
&
i_track_id
)
!=
4
)
&
i_
bus
,
&
i_
dev
,
&
i_product_id
,
&
i_track_id
)
!=
4
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
i_ret
=
LIBMTP_Detect_Raw_Devices
(
&
p_rawdevices
,
&
i_numrawdevices
);
i_ret
=
LIBMTP_Detect_Raw_Devices
(
&
p_rawdevices
,
&
i_numrawdevices
);
if
(
i_ret
!=
0
||
i_numrawdevices
<=
0
||
!
p_rawdevices
)
if
(
i_ret
!=
0
||
i_numrawdevices
<=
0
||
!
p_rawdevices
)
...
...
modules/access/pvr.c
View file @
6d4bc50f
...
@@ -577,7 +577,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -577,7 +577,7 @@ static int Open( vlc_object_t * p_this )
p_sys
->
i_input
=
var_CreateGetInteger
(
p_access
,
"pvr-channel"
);
p_sys
->
i_input
=
var_CreateGetInteger
(
p_access
,
"pvr-channel"
);
/* parse command line options */
/* parse command line options */
psz_tofree
=
strdup
(
p_access
->
psz_
path
);
psz_tofree
=
strdup
(
p_access
->
psz_
location
);
if
(
!
psz_tofree
)
if
(
!
psz_tofree
)
{
{
free
(
p_sys
->
psz_radiodev
);
free
(
p_sys
->
psz_radiodev
);
...
...
modules/access/rtmp/access.c
View file @
6d4bc50f
...
@@ -106,7 +106,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -106,7 +106,7 @@ static int Open( vlc_object_t *p_this )
vlc_object_attach
(
p_sys
->
p_thread
,
p_access
);
vlc_object_attach
(
p_sys
->
p_thread
,
p_access
);
/* Parse URI - remove spaces */
/* Parse URI - remove spaces */
p
=
psz
=
strdup
(
p_access
->
psz_
path
);
p
=
psz
=
strdup
(
p_access
->
psz_
location
);
while
(
(
p
=
strchr
(
p
,
' '
))
!=
NULL
)
while
(
(
p
=
strchr
(
p
,
' '
))
!=
NULL
)
*
p
=
'+'
;
*
p
=
'+'
;
vlc_UrlParse
(
&
p_sys
->
p_thread
->
url
,
psz
,
0
);
vlc_UrlParse
(
&
p_sys
->
p_thread
->
url
,
psz
,
0
);
...
...
modules/access/rtsp/access.c
View file @
6d4bc50f
...
@@ -193,7 +193,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -193,7 +193,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_rtsp
->
pf_read_line
=
RtspReadLine
;
p_sys
->
p_rtsp
->
pf_read_line
=
RtspReadLine
;
p_sys
->
p_rtsp
->
pf_write
=
RtspWrite
;
p_sys
->
p_rtsp
->
pf_write
=
RtspWrite
;
i_result
=
rtsp_connect
(
p_sys
->
p_rtsp
,
p_access
->
psz_
path
,
0
);
i_result
=
rtsp_connect
(
p_sys
->
p_rtsp
,
p_access
->
psz_
location
,
0
);
if
(
i_result
)
if
(
i_result
)
{
{
msg_Dbg
(
p_access
,
"could not connect to: %s"
,
p_access
->
psz_path
);
msg_Dbg
(
p_access
,
"could not connect to: %s"
,
p_access
->
psz_path
);
...
...
modules/access/sftp.c
View file @
6d4bc50f
...
@@ -109,13 +109,13 @@ static int Open( vlc_object_t* p_this )
...
@@ -109,13 +109,13 @@ static int Open( vlc_object_t* p_this )
int
i_ret
;
int
i_ret
;
vlc_url_t
url
;
vlc_url_t
url
;
if
(
!
p_access
->
psz_
path
)
if
(
!
p_access
->
psz_
location
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
STANDARD_BLOCK_ACCESS_INIT
;
STANDARD_BLOCK_ACCESS_INIT
;
/* Parse the URL */
/* Parse the URL */
c
har
*
path
=
p_access
->
psz_path
;
c
onst
char
*
path
=
p_access
->
psz_location
;
vlc_UrlParse
(
&
url
,
path
,
0
);
vlc_UrlParse
(
&
url
,
path
,
0
);
/* Check for some parameters */
/* Check for some parameters */
...
...
modules/access/smb.c
View file @
6d4bc50f
...
@@ -138,25 +138,25 @@ static int Open( vlc_object_t *p_this )
...
@@ -138,25 +138,25 @@ static int Open( vlc_object_t *p_this )
/* Parse input URI
/* Parse input URI
* [[[domain;]user[:password@]]server[/share[/path[/file]]]] */
* [[[domain;]user[:password@]]server[/share[/path[/file]]]] */
psz_path
=
strchr
(
p_access
->
psz_
path
,
'/'
);
psz_path
=
strchr
(
p_access
->
psz_
location
,
'/'
);
if
(
!
psz_path
)
if
(
!
psz_path
)
{
{
msg_Err
(
p_access
,
"invalid SMB URI: smb://%s"
,
psz_
path
);
msg_Err
(
p_access
,
"invalid SMB URI: smb://%s"
,
psz_
location
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
else
else
{
{
char
*
psz_tmp
=
strdup
(
p_access
->
psz_
path
);
char
*
psz_tmp
=
strdup
(
p_access
->
psz_
location
);
char
*
psz_parser
;
char
*
psz_parser
;
psz_tmp
[
psz_path
-
p_access
->
psz_
path
]
=
0
;
psz_tmp
[
psz_path
-
p_access
->
psz_
location
]
=
0
;
psz_path
=
p_access
->
psz_
path
;
psz_path
=
p_access
->
psz_
location
;
psz_parser
=
strchr
(
psz_tmp
,
'@'
);
psz_parser
=
strchr
(
psz_tmp
,
'@'
);
if
(
psz_parser
)
if
(
psz_parser
)
{
{
/* User info is there */
/* User info is there */
*
psz_parser
=
0
;
*
psz_parser
=
0
;
psz_path
=
p_access
->
psz_
path
+
(
psz_parser
-
psz_tmp
)
+
1
;
psz_path
=
p_access
->
psz_
location
+
(
psz_parser
-
psz_tmp
)
+
1
;
psz_parser
=
strchr
(
psz_tmp
,
':'
);
psz_parser
=
strchr
(
psz_tmp
,
':'
);
if
(
psz_parser
)
if
(
psz_parser
)
...
@@ -230,7 +230,8 @@ static int Open( vlc_object_t *p_this )
...
@@ -230,7 +230,8 @@ static int Open( vlc_object_t *p_this )
#endif
#endif
if
(
(
i_smb
=
smbc_open
(
psz_uri
,
O_RDONLY
,
0
))
<
0
)
if
(
(
i_smb
=
smbc_open
(
psz_uri
,
O_RDONLY
,
0
))
<
0
)
{
{
msg_Err
(
p_access
,
"open failed for '%s' (%m)"
,
p_access
->
psz_path
);
msg_Err
(
p_access
,
"open failed for '%s' (%m)"
,
p_access
->
psz_location
);
free
(
psz_uri
);
free
(
psz_uri
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
...
modules/access/tcp.c
View file @
6d4bc50f
...
@@ -81,7 +81,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -81,7 +81,7 @@ static int Open( vlc_object_t *p_this )
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_sys_t
*
p_sys
;
access_sys_t
*
p_sys
;
char
*
psz_dup
=
strdup
(
p_access
->
psz_
path
);
char
*
psz_dup
=
strdup
(
p_access
->
psz_
location
);
char
*
psz_parser
=
psz_dup
;
char
*
psz_parser
=
psz_dup
;
/* Parse server:port */
/* Parse server:port */
...
...
modules/access/udp.c
View file @
6d4bc50f
...
@@ -90,7 +90,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -90,7 +90,7 @@ static int Open( vlc_object_t *p_this )
{
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
access_t
*
p_access
=
(
access_t
*
)
p_this
;
char
*
psz_name
=
strdup
(
p_access
->
psz_
path
);
char
*
psz_name
=
strdup
(
p_access
->
psz_
location
);
char
*
psz_parser
;
char
*
psz_parser
;
const
char
*
psz_server_addr
,
*
psz_bind_addr
=
""
;
const
char
*
psz_server_addr
,
*
psz_bind_addr
=
""
;
int
i_bind_port
,
i_server_port
=
0
;
int
i_bind_port
,
i_server_port
=
0
;
...
...
modules/access/v4l2.c
View file @
6d4bc50f
...
@@ -1131,7 +1131,7 @@ static int AccessOpen( vlc_object_t * p_this )
...
@@ -1131,7 +1131,7 @@ static int AccessOpen( vlc_object_t * p_this )
GetV4L2Params
(
p_sys
,
(
vlc_object_t
*
)
p_access
);
GetV4L2Params
(
p_sys
,
(
vlc_object_t
*
)
p_access
);
ParseMRL
(
p_sys
,
p_access
->
psz_
path
,
(
vlc_object_t
*
)
p_access
);
ParseMRL
(
p_sys
,
p_access
->
psz_
location
,
(
vlc_object_t
*
)
p_access
);
#ifdef HAVE_LIBV4L2
#ifdef HAVE_LIBV4L2
if
(
!
var_InheritInteger
(
p_this
,
CFG_PREFIX
"use-libv4l2"
)
)
if
(
!
var_InheritInteger
(
p_this
,
CFG_PREFIX
"use-libv4l2"
)
)
...
...
modules/access/vcdx/access.c
View file @
6d4bc50f
...
@@ -563,12 +563,12 @@ VCDParse( access_t * p_access, /*out*/ vcdinfo_itemid_t * p_itemid,
...
@@ -563,12 +563,12 @@ VCDParse( access_t * p_access, /*out*/ vcdinfo_itemid_t * p_itemid,
if
(
!
p_access
->
psz_access
||
!*
p_access
->
psz_access
)
return
NULL
;
if
(
!
p_access
->
psz_access
||
!*
p_access
->
psz_access
)
return
NULL
;
#endif
#endif
if
(
!
p_access
->
psz_
path
)
if
(
!
p_access
->
psz_
location
)
{
{
return
NULL
;
return
NULL
;
}
}
psz_parser
=
psz_source
=
strdup
(
p_access
->
psz_
path
);
psz_parser
=
psz_source
=
strdup
(
p_access
->
psz_
location
);
/* Parse input string :
/* Parse input string :
* [device][@[type][title]] */
* [device][@[type][title]] */
...
@@ -884,7 +884,7 @@ VCDOpen ( vlc_object_t *p_this )
...
@@ -884,7 +884,7 @@ VCDOpen ( vlc_object_t *p_this )
}
}
dbg_print
(
(
INPUT_DBG_CALL
|
INPUT_DBG_EXT
),
"source: %s: mrl: %s"
,
dbg_print
(
(
INPUT_DBG_CALL
|
INPUT_DBG_EXT
),
"source: %s: mrl: %s"
,
psz_source
,
p_access
->
psz_
path
);
psz_source
,
p_access
->
psz_
location
);
p_vcdplayer
->
psz_source
=
strdup
(
psz_source
);
p_vcdplayer
->
psz_source
=
strdup
(
psz_source
);
p_vcdplayer
->
i_blocks_per_read
=
var_InheritInteger
(
p_this
,
MODULE_STRING
p_vcdplayer
->
i_blocks_per_read
=
var_InheritInteger
(
p_this
,
MODULE_STRING
...
...
modules/access/zip/zipaccess.c
View file @
6d4bc50f
...
@@ -105,9 +105,9 @@ int AccessOpen( vlc_object_t *p_this )
...
@@ -105,9 +105,9 @@ int AccessOpen( vlc_object_t *p_this )
char
*
psz_pathToZip
=
NULL
,
*
psz_path
=
NULL
,
*
psz_sep
=
NULL
;
char
*
psz_pathToZip
=
NULL
,
*
psz_path
=
NULL
,
*
psz_sep
=
NULL
;
if
(
!
strstr
(
p_access
->
psz_
path
,
ZIP_SEP
)
)
if
(
!
strstr
(
p_access
->
psz_
location
,
ZIP_SEP
)
)
{
{
msg_Dbg
(
p_access
,
"
path
does not contain separator "
ZIP_SEP
);
msg_Dbg
(
p_access
,
"
location
does not contain separator "
ZIP_SEP
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -117,7 +117,7 @@ int AccessOpen( vlc_object_t *p_this )
...
@@ -117,7 +117,7 @@ int AccessOpen( vlc_object_t *p_this )
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
/* Split the MRL */
/* Split the MRL */
psz_path
=
strdup
(
p_access
->
psz_
path
);
psz_path
=
strdup
(
p_access
->
psz_
location
);
psz_sep
=
strstr
(
psz_path
,
ZIP_SEP
);
psz_sep
=
strstr
(
psz_path
,
ZIP_SEP
);
*
psz_sep
=
'\0'
;
*
psz_sep
=
'\0'
;
...
@@ -125,7 +125,7 @@ int AccessOpen( vlc_object_t *p_this )
...
@@ -125,7 +125,7 @@ int AccessOpen( vlc_object_t *p_this )
if
(
!
psz_pathToZip
)
if
(
!
psz_pathToZip
)
{
{
/* Maybe this was not an encoded string */
/* Maybe this was not an encoded string */
msg_Dbg
(
p_access
,
"
this is not an encoded url.
Trying file '%s'"
,
msg_Dbg
(
p_access
,
"
not an encoded URL
Trying file '%s'"
,
psz_path
);
psz_path
);
psz_pathToZip
=
strdup
(
psz_path
);
psz_pathToZip
=
strdup
(
psz_path
);
}
}
...
...
src/input/access.c
View file @
6d4bc50f
...
@@ -63,7 +63,7 @@ access_t *__access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
...
@@ -63,7 +63,7 @@ access_t *__access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
p_access
->
p_input
=
p_parent_input
;
p_access
->
p_input
=
p_parent_input
;
p_access
->
psz_access
=
strdup
(
psz_access
);
p_access
->
psz_access
=
strdup
(
psz_access
);
p_access
->
psz_
path
=
strdup
(
psz_location
);
p_access
->
psz_
location
=
strdup
(
psz_location
);
p_access
->
psz_filepath
=
get_path
(
psz_location
);
p_access
->
psz_filepath
=
get_path
(
psz_location
);
p_access
->
psz_demux
=
strdup
(
psz_demux
);
p_access
->
psz_demux
=
strdup
(
psz_demux
);
...
@@ -86,7 +86,7 @@ access_t *__access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
...
@@ -86,7 +86,7 @@ access_t *__access_New( vlc_object_t *p_obj, input_thread_t *p_parent_input,
if
(
p_access
->
p_module
==
NULL
)
if
(
p_access
->
p_module
==
NULL
)
{
{
free
(
p_access
->
psz_access
);
free
(
p_access
->
psz_access
);
free
(
p_access
->
psz_
path
);
free
(
p_access
->
psz_
location
);
free
(
p_access
->
psz_filepath
);
free
(
p_access
->
psz_filepath
);
free
(
p_access
->
psz_demux
);
free
(
p_access
->
psz_demux
);
vlc_object_release
(
p_access
);
vlc_object_release
(
p_access
);
...
@@ -104,7 +104,7 @@ void access_Delete( access_t *p_access )
...
@@ -104,7 +104,7 @@ void access_Delete( access_t *p_access )
module_unneed
(
p_access
,
p_access
->
p_module
);
module_unneed
(
p_access
,
p_access
->
p_module
);
free
(
p_access
->
psz_access
);
free
(
p_access
->
psz_access
);
free
(
p_access
->
psz_
path
);
free
(
p_access
->
psz_
location
);
free
(
p_access
->
psz_filepath
);
free
(
p_access
->
psz_filepath
);
free
(
p_access
->
psz_demux
);
free
(
p_access
->
psz_demux
);
...
...
src/input/stream.c
View file @
6d4bc50f
...
@@ -294,7 +294,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
...
@@ -294,7 +294,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
return
NULL
;
return
NULL
;
s
->
p_input
=
p_access
->
p_input
;
s
->
p_input
=
p_access
->
p_input
;
s
->
psz_path
=
strdup
(
p_access
->
psz_
path
);
s
->
psz_path
=
strdup
(
p_access
->
psz_
location
);
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
s
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
if
(
!
s
->
psz_path
||
!
s
->
p_sys
)
if
(
!
s
->
psz_path
||
!
s
->
p_sys
)
{
{
...
@@ -339,7 +339,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
...
@@ -339,7 +339,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
goto
error
;
goto
error
;
p_entry
->
i_size
=
p_access
->
info
.
i_size
;
p_entry
->
i_size
=
p_access
->
info
.
i_size
;
p_entry
->
psz_path
=
strdup
(
p_access
->
psz_
path
);
p_entry
->
psz_path
=
strdup
(
p_access
->
psz_
location
);
if
(
!
p_entry
->
psz_path
)
if
(
!
p_entry
->
psz_path
)
{
{
free
(
p_entry
);
free
(
p_entry
);
...
...
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