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
ec0c77b9
Commit
ec0c77b9
authored
Feb 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux: remove return value from sout_mux_t.pf_delstream
This is always VLC_SUCCESS anyway.
parent
21dfee9d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
36 deletions
+22
-36
include/vlc_sout.h
include/vlc_sout.h
+1
-1
modules/demux/avformat/mux.c
modules/demux/avformat/mux.c
+2
-3
modules/mux/asf.c
modules/mux/asf.c
+2
-3
modules/mux/avi.c
modules/mux/avi.c
+2
-3
modules/mux/dummy.c
modules/mux/dummy.c
+2
-3
modules/mux/mp4.c
modules/mux/mp4.c
+2
-3
modules/mux/mpeg/ps.c
modules/mux/mpeg/ps.c
+2
-3
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+2
-4
modules/mux/mpjpeg.c
modules/mux/mpjpeg.c
+2
-3
modules/mux/ogg.c
modules/mux/ogg.c
+2
-2
modules/mux/wav.c
modules/mux/wav.c
+2
-4
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+1
-4
No files found.
include/vlc_sout.h
View file @
ec0c77b9
...
...
@@ -115,7 +115,7 @@ struct sout_mux_t
sout_access_out_t
*
p_access
;
int
(
*
pf_addstream
)(
sout_mux_t
*
,
sout_input_t
*
);
int
(
*
pf_delstream
)(
sout_mux_t
*
,
sout_input_t
*
);
void
(
*
pf_delstream
)(
sout_mux_t
*
,
sout_input_t
*
);
int
(
*
pf_mux
)
(
sout_mux_t
*
);
int
(
*
pf_control
)
(
sout_mux_t
*
,
int
,
va_list
);
...
...
modules/demux/avformat/mux.c
View file @
ec0c77b9
...
...
@@ -68,7 +68,7 @@ struct sout_mux_sys_t
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
static
int
IOWrite
(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
);
...
...
@@ -300,11 +300,10 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
/*****************************************************************************
* DelStream
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
msg_Dbg
(
p_mux
,
"removing input"
);
free
(
p_input
->
p_sys
);
return
VLC_SUCCESS
;
}
static
int
MuxBlock
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
...
...
modules/mux/asf.c
View file @
ec0c77b9
...
...
@@ -105,7 +105,7 @@ static const char *const ppsz_sout_options[] = {
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
typedef
struct
...
...
@@ -634,7 +634,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
/*****************************************************************************
* DelStream:
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
/* if bitrate ain't defined in commandline, reduce it when tracks are deleted
*/
...
...
@@ -664,7 +664,6 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
vlc_array_remove
(
p_sys
->
p_tracks
,
vlc_array_index_of_item
(
p_sys
->
p_tracks
,
(
void
*
)
tk
)
);
p_sys
->
b_write_header
=
true
;
}
return
VLC_SUCCESS
;
}
/*****************************************************************************
...
...
modules/mux/avi.c
View file @
ec0c77b9
...
...
@@ -84,7 +84,7 @@ vlc_module_end ()
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
typedef
struct
avi_stream_s
...
...
@@ -456,12 +456,11 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
return
(
VLC_SUCCESS
);
}
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
msg_Dbg
(
p_mux
,
"removing input"
);
free
(
p_input
->
p_sys
);
return
0
;
}
static
int
Mux
(
sout_mux_t
*
p_mux
)
...
...
modules/mux/dummy.c
View file @
ec0c77b9
...
...
@@ -55,7 +55,7 @@ vlc_module_end ()
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
struct
sout_mux_sys_t
...
...
@@ -132,11 +132,10 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
return
VLC_SUCCESS
;
}
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
VLC_UNUSED
(
p_input
);
msg_Dbg
(
p_mux
,
"removing input"
);
return
VLC_SUCCESS
;
}
static
int
Mux
(
sout_mux_t
*
p_mux
)
...
...
modules/mux/mp4.c
View file @
ec0c77b9
...
...
@@ -95,7 +95,7 @@ static const char *const ppsz_sout_options[] = {
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
static
int
MuxFrag
(
sout_mux_t
*
);
...
...
@@ -527,11 +527,10 @@ static int AddStream(sout_mux_t *p_mux, sout_input_t *p_input)
/*****************************************************************************
* DelStream:
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
VLC_UNUSED
(
p_input
);
msg_Dbg
(
p_mux
,
"removing input"
);
return
VLC_SUCCESS
;
}
/*****************************************************************************
...
...
modules/mux/mpeg/ps.c
View file @
ec0c77b9
...
...
@@ -80,7 +80,7 @@ vlc_module_end ()
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
/*****************************************************************************
...
...
@@ -383,7 +383,7 @@ error:
/*****************************************************************************
* DelStream:
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
ps_stream_t
*
p_stream
=
(
ps_stream_t
*
)
p_input
->
p_sys
;
...
...
@@ -437,7 +437,6 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
p_sys
->
i_psm_version
++
;
free
(
p_stream
);
return
VLC_SUCCESS
;
}
/*****************************************************************************
...
...
modules/mux/mpeg/ts.c
View file @
ec0c77b9
...
...
@@ -456,7 +456,7 @@ static int intcompare( const void *pa, const void *pb )
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
static
block_t
*
FixPES
(
sout_mux_t
*
p_mux
,
block_fifo_t
*
p_fifo
);
...
...
@@ -1127,7 +1127,7 @@ oom:
/*****************************************************************************
* DelStream: called before a stream deletion
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
sout_input_sys_t
*
p_stream
=
(
sout_input_sys_t
*
)
p_input
->
p_sys
;
...
...
@@ -1200,8 +1200,6 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
/* We only change PMT version (PAT isn't changed) */
p_sys
->
i_pmt_version_number
++
;
p_sys
->
i_pmt_version_number
%=
32
;
return
VLC_SUCCESS
;
}
static
void
SetHeader
(
sout_buffer_chain_t
*
c
,
...
...
modules/mux/mpjpeg.c
View file @
ec0c77b9
...
...
@@ -57,7 +57,7 @@ vlc_module_end ()
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
/* This pseudo-random sequence is unlikely to ever happen */
...
...
@@ -136,11 +136,10 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
return
VLC_SUCCESS
;
}
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
VLC_UNUSED
(
p_input
);
msg_Dbg
(
p_mux
,
"removing input"
);
return
VLC_SUCCESS
;
}
static
int
Mux
(
sout_mux_t
*
p_mux
)
...
...
modules/mux/ogg.c
View file @
ec0c77b9
...
...
@@ -75,7 +75,7 @@ vlc_module_end ()
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
static
int
MuxBlock
(
sout_mux_t
*
,
sout_input_t
*
);
...
...
@@ -555,7 +555,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
/*****************************************************************************
* DelStream: Delete an elementary stream from the muxed stream
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
ogg_stream_t
*
p_stream
=
(
ogg_stream_t
*
)
p_input
->
p_sys
;
...
...
modules/mux/wav.c
View file @
ec0c77b9
...
...
@@ -56,7 +56,7 @@ vlc_module_end ()
*****************************************************************************/
static
int
Control
(
sout_mux_t
*
,
int
,
va_list
);
static
int
AddStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
void
DelStream
(
sout_mux_t
*
,
sout_input_t
*
);
static
int
Mux
(
sout_mux_t
*
);
#define MAX_CHANNELS 6
...
...
@@ -255,7 +255,7 @@ static block_t *GetHeader( sout_mux_t *p_mux )
return
p_block
;
}
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
static
void
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
VLC_UNUSED
(
p_input
);
msg_Dbg
(
p_mux
,
"removing input"
);
...
...
@@ -265,8 +265,6 @@ static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input )
{
sout_AccessOutWrite
(
p_mux
->
p_access
,
GetHeader
(
p_mux
)
);
}
return
VLC_SUCCESS
;
}
static
int
Mux
(
sout_mux_t
*
p_mux
)
...
...
src/stream_output/stream_output.c
View file @
ec0c77b9
...
...
@@ -490,10 +490,7 @@ void sout_MuxDeleteStream( sout_mux_t *p_mux, sout_input_t *p_input )
TAB_FIND
(
p_mux
->
i_nb_inputs
,
p_mux
->
pp_inputs
,
p_input
,
i_index
);
if
(
i_index
>=
0
)
{
if
(
p_mux
->
pf_delstream
(
p_mux
,
p_input
)
<
0
)
{
msg_Err
(
p_mux
,
"cannot delete this stream from mux"
);
}
p_mux
->
pf_delstream
(
p_mux
,
p_input
);
/* remove the entry */
TAB_REMOVE
(
p_mux
->
i_nb_inputs
,
p_mux
->
pp_inputs
,
p_input
);
...
...
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