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
b87f1bdc
Commit
b87f1bdc
authored
Aug 24, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't return negative session number
parent
35754aba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+2
-2
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+1
-1
No files found.
modules/stream_out/rtp.c
View file @
b87f1bdc
...
...
@@ -499,7 +499,7 @@ static int Open( vlc_object_t *p_this )
asprintf
(
&
p_sys
->
psz_sdp
,
"v=0
\r\n
"
/* FIXME: source address not known :( */
"o=- "
I64F
d
" %d IN IP%c %s
\r\n
"
"o=- "
I64F
u
" %d IN IP%c %s
\r\n
"
"s=%s
\r\n
"
"i=%s
\r\n
"
"u=%s
\r\n
"
...
...
@@ -771,7 +771,7 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
p
=
psz_sdp
=
malloc
(
i_size
);
p
+=
sprintf
(
p
,
"v=0
\r\n
"
);
p
+=
sprintf
(
p
,
"o=- "
I64F
d
" %d IN IP%c %s
\r\n
"
,
p
+=
sprintf
(
p
,
"o=- "
I64F
u
" %d IN IP%c %s
\r\n
"
,
p_sys
->
i_sdp_id
,
p_sys
->
i_sdp_version
,
ipv
,
ipv
==
'6'
?
"::1"
:
"127.0.0.1"
);
if
(
*
p_sys
->
psz_session_name
)
...
...
modules/stream_out/rtsp.c
View file @
b87f1bdc
...
...
@@ -439,7 +439,7 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
if
(
psz_session
==
NULL
)
{
/* FIXME: should be somewhat secure randomness */
snprintf
(
psz_session_init
,
sizeof
(
psz_session_init
),
I64F
d
,
snprintf
(
psz_session_init
,
sizeof
(
psz_session_init
),
I64F
u
,
NTPtime64
()
+
rand
()
);
}
...
...
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