diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index fd4262fb36..4ec5d7294e 100644 --- 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; }