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
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
Hide 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 )
msg_Err
(
p_stream
,
"bad SRTP key/salt combination (%m)"
);
goto
error
;
}
id
->
i_sequence
=
0
;
/* FIXME: awful hack for libvlc_srtp */
}
vlc_mutex_init
(
&
id
->
lock_sink
);
...
...
@@ -1440,16 +1441,10 @@ static void ThreadSend( vlc_object_t *p_this )
if
(
id
->
srtp
)
{
/* FIXME: this is awfully inefficient */
size_t
len
=
out
->
i_buffer
;
int
val
=
srtp_send
(
id
->
srtp
,
out
->
p_buffer
,
&
len
,
out
->
i_buffer
);
if
(
val
==
ENOSPC
)
{
out
=
block_Realloc
(
out
,
0
,
len
);
if
(
out
==
NULL
)
continue
;
val
=
srtp_send
(
id
->
srtp
,
out
->
p_buffer
,
&
len
,
out
->
i_buffer
);
}
out
=
block_Realloc
(
out
,
0
,
len
+
10
);
out
->
i_buffer
=
len
;
int
val
=
srtp_send
(
id
->
srtp
,
out
->
p_buffer
,
&
len
,
len
+
10
);
if
(
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