1
From 9bbc58138d124177537326db53f1b0ca2106bdc6 Mon Sep 17 00:00:00 2001
2
From: Chow Loong Jin <hyperair@ubuntu.com>
3
Date: Thu, 3 Nov 2011 09:12:04 +0800
4
Subject: [PATCH] libbanshee: Remove unused wanted_size variable
6
This fixes the following warning (bgo#663281):
7
banshee-player-vis.c: In function '_bp_vis_pipeline_setup':
8
banshee-player-vis.c:206:10: error: variable 'wanted_size' set but not used
9
[-Werror=unused-but-set-variable]
11
libbanshee/banshee-player-vis.c | 6 +-----
12
1 files changed, 1 insertions(+), 5 deletions(-)
14
diff --git a/libbanshee/banshee-player-vis.c b/libbanshee/banshee-player-vis.c
15
index 18c71c7..5787c87 100644
16
--- a/libbanshee/banshee-player-vis.c
17
+++ b/libbanshee/banshee-player-vis.c
18
@@ -203,8 +203,7 @@ _bp_vis_pipeline_setup (BansheePlayer *player)
25
player->vis_buffer = NULL;
26
player->vis_fft = gst_fft_f32_new (SLICE_SIZE * 2, FALSE);
27
player->vis_fft_buffer = g_new (GstFFTF32Complex, SLICE_SIZE + 1);
28
@@ -221,9 +220,6 @@ _bp_vis_pipeline_setup (BansheePlayer *player)
29
converter = gst_element_factory_make ("audioconvert", "vis-convert");
30
fakesink = gst_element_factory_make ("fakesink", "vis-sink");
32
- // channels * slice size * float size = size of chunks we want
33
- wanted_size = 2 * SLICE_SIZE * sizeof(gfloat);
35
if (audiosinkqueue == NULL || resampler == NULL || converter == NULL || fakesink == NULL) {
36
bp_debug ("Could not construct visualization pipeline, a fundamental element could not be created");