Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
af518b8a
Commit
af518b8a
authored
Feb 10, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/psz_name/psz_path/ for consistency
parent
890a4fb7
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
21 deletions
+20
-21
include/vlc_sout.h
include/vlc_sout.h
+2
-2
modules/access/ftp.c
modules/access/ftp.c
+1
-1
modules/access_output/file.c
modules/access_output/file.c
+8
-8
modules/access_output/http.c
modules/access_output/http.c
+2
-2
modules/access_output/udp.c
modules/access_output/udp.c
+1
-1
modules/codec/ffmpeg/mux.c
modules/codec/ffmpeg/mux.c
+1
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-1
modules/stream_out/standard.c
modules/stream_out/standard.c
+0
-1
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+4
-4
No files found.
include/vlc_sout.h
View file @
af518b8a
...
...
@@ -75,7 +75,7 @@ struct sout_access_out_t
/** Local counter reset each time it is transferred to stats */
int64_t
i_sent_bytes
;
char
*
psz_
name
;
char
*
psz_
path
;
sout_access_out_sys_t
*
p_sys
;
int
(
*
pf_seek
)(
sout_access_out_t
*
,
off_t
);
int
(
*
pf_read
)(
sout_access_out_t
*
,
block_t
*
);
...
...
@@ -86,7 +86,7 @@ struct sout_access_out_t
sout_instance_t
*
p_sout
;
};
VLC_EXPORT
(
sout_access_out_t
*
,
sout_AccessOutNew
,
(
sout_instance_t
*
,
c
har
*
psz_access
,
char
*
psz_name
)
);
VLC_EXPORT
(
sout_access_out_t
*
,
sout_AccessOutNew
,
(
sout_instance_t
*
,
c
onst
char
*
psz_access
,
const
char
*
psz_name
)
);
VLC_EXPORT
(
void
,
sout_AccessOutDelete
,
(
sout_access_out_t
*
)
);
VLC_EXPORT
(
int
,
sout_AccessOutSeek
,
(
sout_access_out_t
*
,
off_t
)
);
VLC_EXPORT
(
int
,
sout_AccessOutRead
,
(
sout_access_out_t
*
,
block_t
*
)
);
...
...
modules/access/ftp.c
View file @
af518b8a
...
...
@@ -367,7 +367,7 @@ static int OutOpen( vlc_object_t *p_this )
/* Init p_access */
p_sys
->
fd_data
=
-
1
;
if
(
parseURL
(
&
p_sys
->
url
,
p_access
->
psz_
name
)
)
if
(
parseURL
(
&
p_sys
->
url
,
p_access
->
psz_
path
)
)
goto
exit_error
;
if
(
Connect
(
p_this
,
p_sys
)
)
...
...
modules/access_output/file.c
View file @
af518b8a
...
...
@@ -105,7 +105,7 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
if
(
!
p_access
->
psz_
name
)
if
(
!
p_access
->
psz_
path
)
{
msg_Err
(
p_access
,
"no file name specified"
);
return
VLC_EGENERIC
;
...
...
@@ -121,7 +121,7 @@ static int Open( vlc_object_t *p_this )
var_Get
(
p_access
,
SOUT_CFG_PREFIX
"append"
,
&
val
);
i_flags
|=
val
.
b_bool
?
O_APPEND
:
O_TRUNC
;
if
(
!
strcmp
(
p_access
->
psz_
name
,
"-"
)
)
if
(
!
strcmp
(
p_access
->
psz_
path
,
"-"
)
)
{
#if defined(WIN32)
setmode
(
STDOUT_FILENO
,
O_BINARY
);
...
...
@@ -132,7 +132,7 @@ static int Open( vlc_object_t *p_this )
else
{
int
fd
;
char
*
psz_tmp
=
str_format
(
p_access
,
p_access
->
psz_
name
);
char
*
psz_tmp
=
str_format
(
p_access
,
p_access
->
psz_
path
);
path_sanitize
(
psz_tmp
);
fd
=
utf8_open
(
psz_tmp
,
i_flags
,
0666
);
...
...
@@ -140,7 +140,7 @@ static int Open( vlc_object_t *p_this )
if
(
fd
==
-
1
)
{
msg_Err
(
p_access
,
"cannot open `%s' (%s)"
,
p_access
->
psz_
name
,
msg_Err
(
p_access
,
"cannot open `%s' (%s)"
,
p_access
->
psz_
path
,
strerror
(
errno
)
);
free
(
p_access
->
p_sys
);
return
(
VLC_EGENERIC
);
...
...
@@ -152,7 +152,7 @@ static int Open( vlc_object_t *p_this )
p_access
->
pf_read
=
Read
;
p_access
->
pf_seek
=
Seek
;
msg_Dbg
(
p_access
,
"file access output opened (`%s')"
,
p_access
->
psz_
name
);
msg_Dbg
(
p_access
,
"file access output opened (`%s')"
,
p_access
->
psz_
path
);
/* Update pace control flag */
if
(
p_access
->
psz_access
&&
!
strcmp
(
p_access
->
psz_access
,
"stream"
)
)
...
...
@@ -168,7 +168,7 @@ static void Close( vlc_object_t * p_this )
{
sout_access_out_t
*
p_access
=
(
sout_access_out_t
*
)
p_this
;
if
(
strcmp
(
p_access
->
psz_
name
,
"-"
)
)
if
(
strcmp
(
p_access
->
psz_
path
,
"-"
)
)
{
if
(
p_access
->
p_sys
->
i_handle
)
{
...
...
@@ -189,7 +189,7 @@ static void Close( vlc_object_t * p_this )
*****************************************************************************/
static
int
Read
(
sout_access_out_t
*
p_access
,
block_t
*
p_buffer
)
{
if
(
strcmp
(
p_access
->
psz_
name
,
"-"
)
)
if
(
strcmp
(
p_access
->
psz_
path
,
"-"
)
)
{
return
read
(
p_access
->
p_sys
->
i_handle
,
p_buffer
->
p_buffer
,
p_buffer
->
i_buffer
);
...
...
@@ -225,7 +225,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
*****************************************************************************/
static
int
Seek
(
sout_access_out_t
*
p_access
,
off_t
i_pos
)
{
if
(
strcmp
(
p_access
->
psz_
name
,
"-"
)
)
if
(
strcmp
(
p_access
->
psz_
path
,
"-"
)
)
{
#if defined( WIN32 ) && !defined( UNDER_CE )
return
(
_lseeki64
(
p_access
->
p_sys
->
i_handle
,
i_pos
,
SEEK_SET
)
);
...
...
modules/access_output/http.c
View file @
af518b8a
...
...
@@ -178,8 +178,8 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_access
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_access
->
p_cfg
);
/* p_access->psz_
name
= "hostname:port/filename" */
psz_bind_addr
=
psz_parser
=
strdup
(
p_access
->
psz_
name
);
/* p_access->psz_
path
= "hostname:port/filename" */
psz_bind_addr
=
psz_parser
=
strdup
(
p_access
->
psz_
path
);
i_bind_port
=
0
;
psz_file_name
=
NULL
;
...
...
modules/access_output/udp.c
View file @
af518b8a
...
...
@@ -225,7 +225,7 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
b_rtpts
)
cscov
+=
RTP_HEADER_LENGTH
;
psz_parser
=
strdup
(
p_access
->
psz_
name
);
psz_parser
=
strdup
(
p_access
->
psz_
path
);
psz_dst_addr
=
psz_parser
;
i_dst_port
=
0
;
...
...
modules/codec/ffmpeg/mux.c
View file @
af518b8a
...
...
@@ -89,7 +89,7 @@ int E_(OpenMux)( vlc_object_t *p_this )
/* Find the requested muxer */
file_oformat
=
guess_format
(
NULL
,
p_mux
->
p_access
->
psz_
name
,
NULL
);
guess_format
(
NULL
,
p_mux
->
p_access
->
psz_
path
,
NULL
);
if
(
!
file_oformat
)
{
msg_Err
(
p_mux
,
"unable for find a suitable output format"
);
...
...
modules/stream_out/rtp.c
View file @
af518b8a
...
...
@@ -513,7 +513,7 @@ static int Open( vlc_object_t *p_this )
p_grab
->
p_sout
=
p_sout
;
p_grab
->
psz_access
=
strdup
(
"grab"
);
p_grab
->
p_cfg
=
NULL
;
p_grab
->
psz_
name
=
strdup
(
""
);
p_grab
->
psz_
path
=
strdup
(
""
);
p_grab
->
p_sys
=
(
sout_access_out_sys_t
*
)
p_stream
;
p_grab
->
pf_seek
=
NULL
;
p_grab
->
pf_write
=
AccessOutGrabberWrite
;
...
...
modules/stream_out/standard.c
View file @
af518b8a
...
...
@@ -355,7 +355,6 @@ static int Open( vlc_object_t *p_this )
#if 0
p_session->psz_uri = strdup( url.psz_host );
p_session->i_port = url.i_port;
p_session->psz_sdp = NULL;
p_session->i_payload = 33;
p_session->b_rtp = strstr( psz_access, "rtp") ? 1 : 0;
#endif
...
...
src/stream_output/stream_output.c
View file @
af518b8a
...
...
@@ -275,7 +275,7 @@ int sout_InputSendBuffer( sout_packetizer_input_t *p_input,
* sout_AccessOutNew: allocate a new access out
*****************************************************************************/
sout_access_out_t
*
sout_AccessOutNew
(
sout_instance_t
*
p_sout
,
c
har
*
psz_access
,
char
*
psz_name
)
c
onst
char
*
psz_access
,
const
char
*
psz_name
)
{
sout_access_out_t
*
p_access
;
char
*
psz_next
;
...
...
@@ -293,7 +293,7 @@ sout_access_out_t *sout_AccessOutNew( sout_instance_t *p_sout,
{
free
(
psz_next
);
}
p_access
->
psz_
name
=
strdup
(
psz_name
?
psz_name
:
""
);
p_access
->
psz_
path
=
strdup
(
psz_name
?
psz_name
:
""
);
p_access
->
p_sout
=
p_sout
;
p_access
->
p_sys
=
NULL
;
p_access
->
pf_seek
=
NULL
;
...
...
@@ -313,7 +313,7 @@ sout_access_out_t *sout_AccessOutNew( sout_instance_t *p_sout,
if
(
!
p_access
->
p_module
)
{
free
(
p_access
->
psz_access
);
free
(
p_access
->
psz_
name
);
free
(
p_access
->
psz_
path
);
vlc_object_detach
(
p_access
);
vlc_object_destroy
(
p_access
);
return
(
NULL
);
...
...
@@ -335,7 +335,7 @@ void sout_AccessOutDelete( sout_access_out_t *p_access )
config_ChainDestroy
(
p_access
->
p_cfg
);
free
(
p_access
->
psz_
name
);
free
(
p_access
->
psz_
path
);
vlc_object_destroy
(
p_access
);
}
...
...
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