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
f3c79cb5
Commit
f3c79cb5
authored
Mar 02, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the DCCP service code(s) from RTP stream output
Signed-off-by:
Rémi Denis-Courmont
<
rem@videolan.org
>
parent
2815e994
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+13
-3
No files found.
modules/stream_out/rtp.c
View file @
f3c79cb5
...
@@ -398,6 +398,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -398,6 +398,7 @@ static int Open( vlc_object_t *p_this )
msg_Warn
(
p_this
,
"unknown or unsupported transport protocol
\"
%s
\"
"
,
msg_Warn
(
p_this
,
"unknown or unsupported transport protocol
\"
%s
\"
"
,
psz
);
psz
);
free
(
psz
);
free
(
psz
);
var_Create
(
p_this
,
"dccp-service"
,
VLC_VAR_STRING
);
if
(
(
p_sys
->
psz_destination
==
NULL
)
&&
!
b_rtsp
)
if
(
(
p_sys
->
psz_destination
==
NULL
)
&&
!
b_rtsp
)
{
{
...
@@ -775,11 +776,9 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
...
@@ -775,11 +776,9 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
{
{
if
(
id
->
listen_fd
!=
NULL
)
if
(
id
->
listen_fd
!=
NULL
)
sdp_AddAttribute
(
&
psz_sdp
,
"setup"
,
"passive"
);
sdp_AddAttribute
(
&
psz_sdp
,
"setup"
,
"passive"
);
#if 0
if
(
p_sys
->
proto
==
IPPROTO_DCCP
)
if
(
p_sys
->
proto
==
IPPROTO_DCCP
)
sdp_AddAttribute
(
&
psz_sdp
,
"dccp-service-code"
,
sdp_AddAttribute
(
&
psz_sdp
,
"dccp-service-code"
,
"SC:RTP%c"
,
toupper
(
mime_major
[
0
]
)
);
"SC:RTP%c"
,
toupper
(
mime_major
[
0
]
)
);
#endif
}
}
}
}
...
@@ -898,8 +897,19 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -898,8 +897,19 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
if
(
p_sys
->
psz_destination
!=
NULL
)
if
(
p_sys
->
psz_destination
!=
NULL
)
switch
(
p_sys
->
proto
)
switch
(
p_sys
->
proto
)
{
{
case
IPPROTO_TCP
:
case
IPPROTO_DCCP
:
case
IPPROTO_DCCP
:
{
const
char
*
code
;
switch
(
id
->
i_cat
)
{
case
VIDEO_ES
:
code
=
"RTPV"
;
break
;
case
AUDIO_ES
:
code
=
"RTPARTPV"
;
break
;
case
SPU_ES
:
code
=
"RTPTRPTV"
;
break
;
default:
code
=
"RTPORTPV"
;
break
;
}
var_SetString
(
p_stream
,
"dccp-service"
,
code
);
}
/* fall through */
case
IPPROTO_TCP
:
id
->
listen_fd
=
net_Listen
(
VLC_OBJECT
(
p_stream
),
id
->
listen_fd
=
net_Listen
(
VLC_OBJECT
(
p_stream
),
p_sys
->
psz_destination
,
i_port
,
p_sys
->
psz_destination
,
i_port
,
p_sys
->
proto
);
p_sys
->
proto
);
...
...
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