libvisual: fix improper video frame clear operation
authorGreg Rutz <greg@gsr-tek.com>
Tue, 12 Mar 2013 03:55:28 +0000 (21:55 -0600)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 13 Mar 2013 00:51:55 +0000 (00:51 +0000)
commitc480bac5b7c9628f97d2459bbde534abd219e5c6
tree5c78bcac5cf020988f96b585329ce65656c58c6b
parent2a1dc7ca5608fecf01061ee3414f3f777e724ae3
libvisual: fix improper video frame clear operation

The current code is memsetting the GstVideoFrame.data 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.

https://bugzilla.gnome.org/show_bug.cgi?id=695655
ext/libvisual/gstaudiovisualizer.c