summaryrefslogtreecommitdiff
path: root/gst/audiovisualizers
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2012-06-24 21:11:39 +0200
committerStefan Sauer <ensonic@users.sf.net>2012-06-24 21:11:39 +0200
commit046d3ab98fc2ab5d1074c1ee99e7d1ded74db4f2 (patch)
tree39796c12d3ce364bcfd4f1793a336d2a344e4767 /gst/audiovisualizers
parent65fa897f9317ff1a889faaab2909557fb59d7c59 (diff)
downloadgstreamer-plugins-bad-046d3ab98fc2ab5d1074c1ee99e7d1ded74db4f2.tar.gz
spectrascope: avoid dark pixels in fade-and-move-up mode
Diffstat (limited to 'gst/audiovisualizers')
-rw-r--r--gst/audiovisualizers/gstspectrascope.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/audiovisualizers/gstspectrascope.c b/gst/audiovisualizers/gstspectrascope.c
index 6b4fe0ee0..63b59becd 100644
--- a/gst/audiovisualizers/gstspectrascope.c
+++ b/gst/audiovisualizers/gstspectrascope.c
@@ -217,10 +217,12 @@ gst_spectra_scope_render (GstBaseAudioVisualizer * bscope, GstBuffer * audio,
y = h - y;
off = (y * w) + x;
vdata[off] = 0x00FFFFFF;
- for (l = y + 1; l <= h; l++) {
+ for (l = y; l < h; l++) {
off += w;
add_pixel (&vdata[off], 0x007F7F7F);
}
+ /* ensure bottom line is full bright (especially in move-up mode) */
+ add_pixel (&vdata[off], 0x007F7F7F);
}
gst_buffer_unmap (video, &vmap);
gst_buffer_unmap (audio, &amap);