Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0e743766
Commit
0e743766
authored
Sep 24, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: support for overriding the TS demux - fixes #2103
parent
4be4d658
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
modules/demux/rtp.c
modules/demux/rtp.c
+16
-1
No files found.
modules/demux/rtp.c
View file @
0e743766
...
@@ -72,6 +72,11 @@
...
@@ -72,6 +72,11 @@
"RTP packets will be discarded if they are too far behind (i.e. in the " \
"RTP packets will be discarded if they are too far behind (i.e. in the " \
"past) by this many packets from the last received packet." )
"past) by this many packets from the last received packet." )
#define RTP_TS_DEMUX_TEXT N_("Demux module for TS over RTP")
#define RTP_TS_DEMUX_LONGTEXT N_( \
"MPEG Transport Stream packets within an RTP stream will be handled by " \
"the specified demux module." )
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
@@ -105,6 +110,9 @@ vlc_module_begin ();
...
@@ -105,6 +110,9 @@ vlc_module_begin ();
RTP_MAX_MISORDER_LONGTEXT
,
true
);
RTP_MAX_MISORDER_LONGTEXT
,
true
);
change_integer_range
(
0
,
32767
);
change_integer_range
(
0
,
32767
);
add_module
(
"rtp-ts-demux"
,
"demux"
,
"ts"
,
NULL
,
RTP_TS_DEMUX_TEXT
,
RTP_TS_DEMUX_LONGTEXT
,
true
);
add_shortcut
(
"dccp"
);
add_shortcut
(
"dccp"
);
/*add_shortcut ("sctp");*/
/*add_shortcut ("sctp");*/
add_shortcut
(
"rtptcp"
);
/* "tcp" is already taken :( */
add_shortcut
(
"rtptcp"
);
/* "tcp" is already taken :( */
...
@@ -609,7 +617,14 @@ static void mpv_decode (demux_t *demux, void *data, block_t *block)
...
@@ -609,7 +617,14 @@ static void mpv_decode (demux_t *demux, void *data, block_t *block)
*/
*/
static
void
*
ts_init
(
demux_t
*
demux
)
static
void
*
ts_init
(
demux_t
*
demux
)
{
{
return
stream_init
(
demux
,
"ts"
);
char
*
ts_demux
=
var_CreateGetNonEmptyString
(
demux
,
"rtp-ts-demux"
);
msg_Dbg
(
demux
,
"using %s chained demux"
,
ts_demux
);
if
(
!
ts_demux
)
return
NULL
;
void
*
stream
=
stream_init
(
demux
,
ts_demux
);
free
(
ts_demux
);
return
stream
;
}
}
...
...
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