changeset 805:1ba5f86aeac9 trunk

[svn] - should check data != NULL before clear data->playing.
author yaz
date Mon, 12 Mar 2007 09:12:26 -0700
parents 1cc14b1239a1
children 74abcb9cafae
files ChangeLog src/cue/cuesheet.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Mar 12 08:52:04 2007 -0700
+++ b/ChangeLog	Mon Mar 12 09:12:26 2007 -0700
@@ -1,3 +1,11 @@
+2007-03-12 15:52:04 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1706]
+  - need to clear data->playing when stopped.
+  
+  trunk/src/cue/cuesheet.c |    2 ++
+  1 file changed, 2 insertions(+)
+
+
 2007-03-12 09:08:26 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1704]
   - performer and title of each track should be NULL after freed.
--- a/src/cue/cuesheet.c	Mon Mar 12 08:52:04 2007 -0700
+++ b/src/cue/cuesheet.c	Mon Mar 12 09:12:26 2007 -0700
@@ -254,7 +254,8 @@
 	if (real_ip != NULL)
 		real_ip->plugin->stop(real_ip);
 
-	data->playing = 0;
+	if (data != NULL)
+		data->playing = 0;
 
 	gtk_timeout_remove(timeout_tag);
 	free_cue_info();