changeset 2820:81604260bc08 trunk

[svn] - make playback stop on removing playlist.
author yaz
date Sun, 03 Jun 2007 21:48:44 -0700
parents 75b12d24b7dc
children ade60a2c52fb
files ChangeLog src/audacious/build_stamp.c src/audacious/playlist.c
diffstat 3 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jun 03 18:03:40 2007 -0700
+++ b/ChangeLog	Sun Jun 03 21:48:44 2007 -0700
@@ -1,3 +1,11 @@
+2007-06-04 01:03:40 +0000  Cristi Magherusan <majeru@atheme.org>
+  revision [4664]
+  match the whole filename when tag isn't available, but i couldnt figure out how to do this all the time because it kept crashing...
+  
+  trunk/src/audacious/ui_jumptotrack.c |   33 ++++++++++++++++++---------------
+  1 file changed, 18 insertions(+), 15 deletions(-)
+
+
 2007-06-03 13:34:33 +0000  
   revision [4662]
   * Update Japanese translation.
--- a/src/audacious/build_stamp.c	Sun Jun 03 18:03:40 2007 -0700
+++ b/src/audacious/build_stamp.c	Sun Jun 03 21:48:44 2007 -0700
@@ -1,2 +1,2 @@
 #include <glib.h>
-const gchar *svn_stamp = "20070603-4662";
+const gchar *svn_stamp = "20070604-4664";
--- a/src/audacious/playlist.c	Sun Jun 03 18:03:40 2007 -0700
+++ b/src/audacious/playlist.c	Sun Jun 03 21:48:44 2007 -0700
@@ -268,6 +268,14 @@
 void
 playlist_remove_playlist(Playlist *playlist)
 {
+    /* users suppose playback will be stopped on removing playlist */
+    if (playback_get_playing()) {
+        ip_data.stop = TRUE;
+        playback_stop();
+        ip_data.stop = FALSE;
+        mainwin_clear_song_info();
+    }
+
     /* trying to free the last playlist simply clears and resets it */
     if (g_list_length(playlists) < 2) {
         playlist_clear(playlist);