~ubuntu-branches/ubuntu/quantal/banshee/quantal

« back to all changes in this revision

Viewing changes to debian/patches/0001-libbanshee-Remove-unused-wanted_size-variable.patch

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-11-08 13:15:58 UTC
  • mfrom: (6.3.19 experimental)
  • Revision ID: package-import@ubuntu.com-20111108131558-01mm4onctf35qgqo
Tags: 2.3.1-1ubuntu1
* Merge from Debian Experimental, remaining changes:
  + Enable SoundMenu and Disable NotificationArea by default
  + Disable boo and karma extensions
  + Enable and recommnd u1ms and soundmenu extensions
  + Move desktop file for Meego UI to /usr/share/une/applications
  + Change the url for the Amazon store redirector
  + [08dea2c] Revert "Fix invalid cast causing ftbfs with libgpod"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
5
 
 
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]
 
10
---
 
11
 libbanshee/banshee-player-vis.c |    6 +-----
 
12
 1 files changed, 1 insertions(+), 5 deletions(-)
 
13
 
 
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)
 
19
     GstCaps *caps;
 
20
     GstPad *teepad;
 
21
     GstPad *pad;
 
22
-    gint wanted_size;
 
23
-    
 
24
+
 
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");
 
31
 
 
32
-    // channels * slice size * float size = size of chunks we want
 
33
-    wanted_size = 2 * SLICE_SIZE * sizeof(gfloat);
 
34
-
 
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");
 
37
         return;
 
38
-- 
 
39
1.7.5.4
 
40