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
6b872c5c
Commit
6b872c5c
authored
Dec 12, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp: clean up RTP-Info generation
parent
8460b86d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+11
-6
No files found.
modules/stream_out/rtsp.c
View file @
6b872c5c
...
...
@@ -210,6 +210,8 @@ struct rtsp_strack_t
static
void
RtspTrackClose
(
rtsp_strack_t
*
tr
);
#define TRACK_PATH_SIZE (sizeof("/trackID=999") - 1)
char
*
RtspAppendTrackPath
(
rtsp_stream_id_t
*
id
,
const
char
*
base
)
{
const
char
*
sep
=
strlen
(
base
)
>
0
&&
base
[
strlen
(
base
)
-
1
]
==
'/'
?
...
...
@@ -228,6 +230,12 @@ rtsp_stream_id_t *RtspAddId( rtsp_stream_t *rtsp, sout_stream_id_t *sid,
const
char
*
dst
,
int
ttl
,
unsigned
loport
,
unsigned
hiport
)
{
if
(
rtsp
->
track_id
>
999
)
{
msg_Err
(
rtsp
->
owner
,
"RTSP: too many IDs!"
);
return
NULL
;
}
char
*
urlbuf
;
rtsp_stream_id_t
*
id
=
malloc
(
sizeof
(
*
id
)
);
httpd_url_t
*
url
;
...
...
@@ -907,12 +915,9 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
if
(
ses
!=
NULL
)
{
/* The "trackID" part must match what is done in
* RtspAppendTrackPath() */
/* FIXME: we really need to limit the number of tracks... */
char
info
[
ses
->
trackc
*
(
strlen
(
control
)
+
sizeof
(
"url=/trackID=123;seq=65535;"
"rtptime=4294967295, "
)
)
+
1
];
char
info
[
ses
->
trackc
*
(
strlen
(
control
)
+
TRACK_PATH_SIZE
+
sizeof
(
"url=;seq=65535;rtptime=4294967295, "
)
-
1
)
+
1
];
size_t
infolen
=
0
;
RtspClientAlive
(
ses
);
...
...
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