[Nautilus-list] [PATCH] fix crash when finishing playing the last song of a list
- From: Diego González <dggonz yahoo com>
- To: Nautilus List <nautilus-list lists eazel com>
- Subject: [Nautilus-list] [PATCH] fix crash when finishing playing the last song of a list
- Date: 11 Mar 2002 18:30:49 +0100
hi
another music-view patch to fix a crash, the music view still shows
some warnings but are not related to this patch, i would like to fix
them, but i don't have time today...maybe tomorrow.
regards,
Diego
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5129
diff -u -r1.5129 ChangeLog
--- ChangeLog 11 Mar 2002 15:57:11 -0000 1.5129
+++ ChangeLog 11 Mar 2002 17:25:19 -0000
@@ -1,3 +1,9 @@
+2002-03-11 Diego González <dggonz yahoo com>
+
+ * components/music/nautilus-music-view.c (go_to_next_track):
+ Fix a crash where the music view would crash after playing the
+ last song of a list. Correct indentation.
+
2002-03-11 Anders Carlsson <andersca gnu org>
* libnautilus-private/nautilus-file-operations-progress-icons.h:
Index: components/music/nautilus-music-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/music/nautilus-music-view.c,v
retrieving revision 1.166
diff -u -r1.166 nautilus-music-view.c
--- components/music/nautilus-music-view.c 7 Mar 2002 19:35:45 -0000 1.166
+++ components/music/nautilus-music-view.c 11 Mar 2002 17:25:20 -0000
@@ -1245,14 +1262,14 @@
static void
go_to_next_track (NautilusMusicView *music_view)
{
- int num_rows;
+ int num_rows;
mpg123_stop ();
- num_rows = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (music_view->details->list_store), NULL);
+ num_rows = gtk_tree_model_iter_n_children (GTK_TREE_MODEL (music_view->details->list_store), NULL);
- if (music_view->details->selected_index < num_rows) {
- music_view->details->selected_index += 1;
+ if ((music_view->details->selected_index + 1) < num_rows) {
+ music_view->details->selected_index += 1;
play_current_file (music_view, TRUE);
} else {
update_play_controls_status (music_view, get_player_state (music_view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]