mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
videotestsrc: Initialize buffer memory with zeroes
This prevents valgrind warnings when accessing the "x" parts of xRGB and friends in other elements that handle (and can handle) xRGB like ARGB (for example videoscale).
This commit is contained in:
parent
8bb44e0f32
commit
1c36c03001
1 changed files with 2 additions and 0 deletions
|
@ -771,6 +771,8 @@ gst_video_test_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (GST_BASE_SRC_PAD (psrc)));
|
||||
}
|
||||
|
||||
memset (GST_BUFFER_DATA (outbuf), 0, GST_BUFFER_SIZE (outbuf));
|
||||
|
||||
if (src->pattern_type == GST_VIDEO_TEST_SRC_BLINK) {
|
||||
if (src->n_frames & 0x1) {
|
||||
gst_video_test_src_white (src, (void *) GST_BUFFER_DATA (outbuf),
|
||||
|
|
Loading…
Reference in a new issue