Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
37666a11
Commit
37666a11
authored
Jul 07, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mpjpeg.c: allow removing/adding a track on the fly.
parent
96f081ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
modules/mux/mpjpeg.c
modules/mux/mpjpeg.c
+19
-1
No files found.
modules/mux/mpjpeg.c
View file @
37666a11
...
...
@@ -98,16 +98,30 @@ static void Close( vlc_object_t * p_this )
static
int
Capability
(
sout_mux_t
*
p_mux
,
int
i_query
,
void
*
p_args
,
void
*
p_answer
)
{
switch
(
i_query
)
{
case
SOUT_MUX_CAP_GET_ADD_STREAM_ANY_TIME
:
*
(
vlc_bool_t
*
)
p_answer
=
VLC_TRUE
;
return
SOUT_MUX_CAP_ERR_OK
;
default:
return
SOUT_MUX_CAP_ERR_UNIMPLEMENTED
;
}
}
static
int
AddStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
if
(
p_mux
->
i_nb_inputs
>
1
)
{
msg_Dbg
(
p_mux
,
"only 1 input allowed"
);
return
VLC_EGENERIC
;
}
msg_Dbg
(
p_mux
,
"adding input"
);
if
(
p_input
->
p_fmt
->
i_codec
!=
VLC_FOURCC
(
'M'
,
'J'
,
'P'
,
'G'
)
)
{
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
}
...
...
@@ -122,6 +136,7 @@ static int Mux( sout_mux_t *p_mux )
block_fifo_t
*
p_fifo
;
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
int
i_count
;
if
(
p_sys
->
b_send_headers
)
{
block_t
*
p_header
=
block_New
(
p_mux
,
sizeof
(
SEPARATOR
)
-
2
);
...
...
@@ -130,6 +145,9 @@ static int Mux( sout_mux_t *p_mux )
sout_AccessOutWrite
(
p_mux
->
p_access
,
p_header
);
p_sys
->
b_send_headers
=
VLC_FALSE
;
}
if
(
!
p_mux
->
i_nb_inputs
)
return
VLC_SUCCESS
;
p_fifo
=
p_mux
->
pp_inputs
[
0
]
->
p_fifo
;
i_count
=
p_fifo
->
i_depth
;
while
(
i_count
>
0
)
...
...
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