[banshee] libbanshee: Remove unused wanted_size variable (bgo#663281)
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] libbanshee: Remove unused wanted_size variable (bgo#663281)
- Date: Fri, 11 Nov 2011 16:35:39 +0000 (UTC)
commit d52c63e4696df095347d8ba1c2a2986c313e8993
Author: Chow Loong Jin <hyperair ubuntu com>
Date: Thu Nov 3 09:12:04 2011 +0800
libbanshee: Remove unused wanted_size variable (bgo#663281)
This fixes the following warning:
banshee-player-vis.c: In function '_bp_vis_pipeline_setup':
banshee-player-vis.c:206:10: error: variable 'wanted_size' set but not used
[-Werror=unused-but-set-variable]
Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>
libbanshee/banshee-player-vis.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libbanshee/banshee-player-vis.c b/libbanshee/banshee-player-vis.c
index 18c71c7..5787c87 100644
--- a/libbanshee/banshee-player-vis.c
+++ b/libbanshee/banshee-player-vis.c
@@ -203,8 +203,7 @@ _bp_vis_pipeline_setup (BansheePlayer *player)
GstCaps *caps;
GstPad *teepad;
GstPad *pad;
- gint wanted_size;
-
+
player->vis_buffer = NULL;
player->vis_fft = gst_fft_f32_new (SLICE_SIZE * 2, FALSE);
player->vis_fft_buffer = g_new (GstFFTF32Complex, SLICE_SIZE + 1);
@@ -221,9 +220,6 @@ _bp_vis_pipeline_setup (BansheePlayer *player)
converter = gst_element_factory_make ("audioconvert", "vis-convert");
fakesink = gst_element_factory_make ("fakesink", "vis-sink");
- // channels * slice size * float size = size of chunks we want
- wanted_size = 2 * SLICE_SIZE * sizeof(gfloat);
-
if (audiosinkqueue == NULL || resampler == NULL || converter == NULL || fakesink == NULL) {
bp_debug ("Could not construct visualization pipeline, a fundamental element could not be created");
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]