mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
rtpsconnection: Fix number of n_vectors
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.
This commit is contained in:
parent
12d534bada
commit
35f2ea21e6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue