projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d534b
)
rtpsconnection: Fix number of n_vectors
author
Göran Jönsson
<goranjn@axis.com>
Thu, 27 Jun 2019 06:04:07 +0000
(08:04 +0200)
committer
Göran Jönsson
<goranjn@axis.com>
Thu, 27 Jun 2019 11:18:06 +0000
(13:18 +0200)
Body_offset mean that so much data have been written.
Without this patch n_vectors somtimes becomes one more than it should
and then there will be an vector that have a random size causing
writev_bytes to cause a "Bad address" error.
gst-libs/gst/rtsp/gstrtspconnection.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/rtsp/gstrtspconnection.c
b/gst-libs/gst/rtsp/gstrtspconnection.c
index
fd4262f
..
4ec5d72
100644
(file)
--- a/
gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/
gst-libs/gst/rtsp/gstrtspconnection.c
@@
-3905,7
+3905,7
@@
gst_rtsp_source_dispatch_write (GPollableOutputStream * stream,
GstMemory *mem = gst_buffer_peek_memory (msg->body_buffer, m);
/* Skip all memories we already wrote */
- if (offset + mem->size < msg->body_offset) {
+ if (offset + mem->size <
=
msg->body_offset) {
offset += mem->size;
continue;
}