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:
2bd1107
)
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
Tim-Philipp Müller
<tim@centricular.com>
Sat, 10 Aug 2019 13:50:40 +0000
(14:50 +0100)
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 9f63533652832b564f1bfcab993da1785d48e6fd..942ddba0d23c3de15bc14bf8287b1d05b565cd36 100644
(file)
--- a/
gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/
gst-libs/gst/rtsp/gstrtspconnection.c
@@
-3871,7
+3871,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;
}