[sound-juicer] sj-play: Remove unused variables



commit b67f8c8bd310ca927d468508244205dc090f126a
Author: Bastien Nocera <hadess hadess net>
Date:   Mon May 23 13:39:39 2011 +0100

    sj-play: Remove unused variables

 configure.in  |    2 +-
 src/sj-play.c |    8 +-------
 2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/configure.in b/configure.in
index 9e5f0c8..70406d3 100644
--- a/configure.in
+++ b/configure.in
@@ -77,7 +77,7 @@ PKG_CHECK_MODULES(MEDIA_PROFILES, libgnome-media-profiles-3.0)
 AC_SUBST(MEDIA_PROFILES_CFLAGS)
 AC_SUBST(MEDIA_PROFILES_LIBS)
 
-# Find optional MusicBrainz3 and required Musicbrainz2
+# Find required MusicBrainz3
 PKG_CHECK_MODULES(MUSICBRAINZ3, libmusicbrainz3 >= 3.0.2, [have_mb3=yes], [have_mb3=no])
 AC_SUBST(MUSICBRAINZ3_CFLAGS)
 AC_SUBST(MUSICBRAINZ3_LIBS)
diff --git a/src/sj-play.c b/src/sj-play.c
index a0e19f3..b6006f6 100644
--- a/src/sj-play.c
+++ b/src/sj-play.c
@@ -49,7 +49,6 @@ static gboolean
 select_track (void)
 {
   GstStateChangeReturn ret;
-  GstElement *cd;
 
   if (!gtk_tree_model_iter_nth_child (GTK_TREE_MODEL (track_store),
                                      &current_iter, NULL, seek_to_track)) {
@@ -57,8 +56,6 @@ select_track (void)
     return FALSE;
   }
 
-  cd = gst_bin_get_by_name_recurse_up (GST_BIN (pipeline), "cd-source");
-
   ret = gst_element_set_state (pipeline, GST_STATE_PAUSED);
   if (ret == GST_STATE_CHANGE_FAILURE) {
     return FALSE;
@@ -509,11 +506,10 @@ G_MODULE_EXPORT void
 on_previous_track_activate(GtkWidget *button, gpointer data)
 {
   GtkTreeModel *model;
-  gint tracks, prev_track = current_track - 1;
+  gint prev_track = current_track - 1;
   GtkTreeIter prev_iter;
 
   model = GTK_TREE_MODEL (track_store);
-  tracks = gtk_tree_model_iter_n_children (model, NULL);
 
   while (prev_track >= 0) {
     gboolean do_play;
@@ -623,9 +619,7 @@ G_MODULE_EXPORT gboolean
 on_seek_release (GtkWidget * scale, GdkEventButton * event, gpointer user_data)
 {
   gdouble val = gtk_range_get_value (GTK_RANGE (scale));
-  GstElement *cd;
 
-  cd = gst_bin_get_by_name_recurse_up (GST_BIN (pipeline), "cd-source");
   seeking = FALSE;
 
   gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, slen * val, GST_SEEK_TYPE_NONE, -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]