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
e1f09197
Commit
e1f09197
authored
Jun 15, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP sout: fix buffer size for SRTP
parent
bc3af7e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+5
-10
No files found.
modules/stream_out/rtp.c
View file @
e1f09197
...
@@ -945,6 +945,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -945,6 +945,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
msg_Err
(
p_stream
,
"bad SRTP key/salt combination (%m)"
);
msg_Err
(
p_stream
,
"bad SRTP key/salt combination (%m)"
);
goto
error
;
goto
error
;
}
}
id
->
i_sequence
=
0
;
/* FIXME: awful hack for libvlc_srtp */
}
}
vlc_mutex_init
(
&
id
->
lock_sink
);
vlc_mutex_init
(
&
id
->
lock_sink
);
...
@@ -1440,16 +1441,10 @@ static void ThreadSend( vlc_object_t *p_this )
...
@@ -1440,16 +1441,10 @@ static void ThreadSend( vlc_object_t *p_this )
if
(
id
->
srtp
)
if
(
id
->
srtp
)
{
/* FIXME: this is awfully inefficient */
{
/* FIXME: this is awfully inefficient */
size_t
len
=
out
->
i_buffer
;
size_t
len
=
out
->
i_buffer
;
int
val
=
srtp_send
(
id
->
srtp
,
out
->
p_buffer
,
&
len
,
out
=
block_Realloc
(
out
,
0
,
len
+
10
);
out
->
i_buffer
);
out
->
i_buffer
=
len
;
if
(
val
==
ENOSPC
)
{
int
val
=
srtp_send
(
id
->
srtp
,
out
->
p_buffer
,
&
len
,
len
+
10
);
out
=
block_Realloc
(
out
,
0
,
len
);
if
(
out
==
NULL
)
continue
;
val
=
srtp_send
(
id
->
srtp
,
out
->
p_buffer
,
&
len
,
out
->
i_buffer
);
}
if
(
val
)
if
(
val
)
{
{
errno
=
val
;
errno
=
val
;
...
...
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