Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-07-24 19:13:04 +0300
committerTim-Philipp Müller <tim@centricular.com>2020-07-24 19:13:04 +0300
commit435c2acdc51fd32ac60bb9b3753573bf3a1265eb (patch)
tree032b38ee47027eb2bacccd834b10bfbeecb3ff4d /sys
parent987a332076b4ef4adc011824b7080a456c4831bc (diff)
rpicamsrc: hypothetical fix for data pointer calculation
mmal buffer header docs say data is valid for length bytes from offset. In practice offset always seems to be 0 so far though. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/682>
Diffstat (limited to 'sys')
-rw-r--r--sys/rpicamsrc/RaspiCapture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpicamsrc/RaspiCapture.c b/sys/rpicamsrc/RaspiCapture.c
index 6368ab4ad..8a58e52a7 100644
--- a/sys/rpicamsrc/RaspiCapture.c
+++ b/sys/rpicamsrc/RaspiCapture.c
@@ -987,7 +987,7 @@ raspi_capture_fill_buffer(RASPIVID_STATE *state, GstBuffer **bufp,
if (config->useSTC)
GST_BUFFER_DTS(buf) = GST_BUFFER_PTS(buf) = gst_pts;
/* FIXME: Can we avoid copies and give MMAL our own buffers to fill? */
- gst_buffer_fill(buf, 0, buffer->data, buffer->length);
+ gst_buffer_fill(buf, 0, buffer->data + buffer->offset, buffer->length);
if ((buffer->flags & MMAL_BUFFER_HEADER_FLAG_CONFIG))
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_HEADER);