mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtmpsrc: Fix element losing data at the end of buffers
rtmpsrc outputs truncated buffers because, when enough data is read to fill the buffer, the amount read that time (todo) is set to zero before it's added to the cumulative buffer size (bsize). The buffer is then truncated to bsize resulting in lost data. This patch adds todo to bsize before setting todo to zero. Fixes #678509
This commit is contained in:
parent
8b9a13de96
commit
96b7059d24
1 changed files with 1 additions and 1 deletions
|
@ -345,8 +345,8 @@ gst_rtmp_src_create (GstPushSrc * pushsrc, GstBuffer ** buffer)
|
|||
todo -= read;
|
||||
bsize += read;
|
||||
} else {
|
||||
todo = 0;
|
||||
bsize += todo;
|
||||
todo = 0;
|
||||
}
|
||||
GST_LOG (" got size %d", read);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue