rhythmbox r5573 - in trunk: . shell



Author: jmatthew
Date: Mon Feb 11 09:17:30 2008
New Revision: 5573
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5573&view=rev

Log:
2008-02-11  Jonathan Matthew  <jonathan d14n org>

	* shell/rb-shell-player.c: (rb_shell_player_handle_eos_unlocked):
	Don't use the playing_entry_eos flag to figure out whether to update
	stats, as it gets reset if the new stream is started synchronously.


Modified:
   trunk/ChangeLog
   trunk/shell/rb-shell-player.c

Modified: trunk/shell/rb-shell-player.c
==============================================================================
--- trunk/shell/rb-shell-player.c	(original)
+++ trunk/shell/rb-shell-player.c	Mon Feb 11 09:17:30 2008
@@ -688,6 +688,7 @@
 {
 	RhythmDBEntry *playing_entry;
 	RBSource *source;
+	gboolean update_stats;
 
 	source = player->priv->current_playing_source;
 
@@ -709,6 +710,7 @@
 		return;
 	}
 
+	update_stats = TRUE;
 	switch (rb_source_handle_eos (source)) {
 	case RB_SOURCE_EOF_ERROR:
 		if (allow_stop) {
@@ -768,13 +770,14 @@
 				} else if (allow_stop == FALSE) {
 					/* handle the real EOS when it happens */
 					player->priv->playing_entry_eos = FALSE;
+					update_stats = FALSE;
 				}
 			}
 		}
 		break;
 	}
 
-	if (player->priv->playing_entry_eos &&
+	if (update_stats &&
 	    rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_PLAYBACK_ERROR) == NULL) {
 		rb_debug ("updating play statistics");
 		rb_source_update_play_statistics (source,



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