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
48c929bf
Commit
48c929bf
authored
Aug 18, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP input: keep track of chained demux
parent
6b19c143
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+12
-2
modules/access/rtp/rtp.h
modules/access/rtp/rtp.h
+1
-0
No files found.
modules/access/rtp/rtp.c
View file @
48c929bf
...
...
@@ -254,6 +254,7 @@ static int Open (vlc_object_t *obj)
return
VLC_EGENERIC
;
}
p_sys
->
chained_demux
=
NULL
;
#ifdef HAVE_SRTP
p_sys
->
srtp
=
NULL
;
#endif
...
...
@@ -443,14 +444,23 @@ void codec_decode (demux_t *demux, void *data, block_t *block)
static
void
*
stream_init
(
demux_t
*
demux
,
const
char
*
name
)
{
return
stream_DemuxNew
(
demux
,
name
,
demux
->
out
);
demux_sys_t
*
p_sys
=
demux
->
p_sys
;
if
(
p_sys
->
chained_demux
!=
NULL
)
return
NULL
;
p_sys
->
chained_demux
=
stream_DemuxNew
(
demux
,
name
,
demux
->
out
);
return
p_sys
->
chained_demux
;
}
static
void
stream_destroy
(
demux_t
*
demux
,
void
*
data
)
{
demux_sys_t
*
p_sys
=
demux
->
p_sys
;
if
(
data
)
{
stream_Delete
((
stream_t
*
)
data
);
(
void
)
demux
;
p_sys
->
chained_demux
=
NULL
;
}
}
/* Send a packet to a chained demuxer */
...
...
modules/access/rtp/rtp.h
View file @
48c929bf
...
...
@@ -62,6 +62,7 @@ void *rtp_stream_thread (void *data);
struct
demux_sys_t
{
rtp_session_t
*
session
;
stream_t
*
chained_demux
;
#ifdef HAVE_SRTP
struct
srtp_session_t
*
srtp
;
#endif
...
...
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