Commit c480bac5 authored by Greg Rutz's avatar Greg Rutz Committed by Tim-Philipp Müller

libvisual: fix improper video frame clear operation

The current code is memsetting the address to 0s (which
causes a segfault). This member is actually an array of data buffers (one for
each plane).  This fix iterates over each data plane to clear them all.
parent 2a1dc7ca
......@@ -1126,7 +1126,11 @@ gst_audio_visualizer_chain (GstPad * pad, GstObject * parent,
gst_video_frame_copy (&outframe, &scope->tempframe);
} else {
/* gst_video_frame_clear() or is output frame already cleared */
memset (, 0, scope->vinfo.size);
gint i;
for (i = 0; i < scope->vinfo.finfo->n_planes; i++) {
memset ([i], 0,[i].size);
gst_buffer_replace_all_memory (inbuf,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment