totem r5902 - in trunk: . src



Author: hadess
Date: Tue Jan  6 14:32:06 2009
New Revision: 5902
URL: http://svn.gnome.org/viewvc/totem?rev=5902&view=rev

Log:
2009-01-06  Bastien Nocera  <hadess hadess net>

	* src/totem-object.c (totem_add_to_playlist_and_play):
	Fix totem_add_to_playlist_and_play() to add files to
	the playlist and play them, even if the playlist is empty,
	spotted by Philip Withnall <philip tecnocode co uk>
	(Closes: #563961)



Modified:
   trunk/ChangeLog
   trunk/src/totem-object.c

Modified: trunk/src/totem-object.c
==============================================================================
--- trunk/src/totem-object.c	(original)
+++ trunk/src/totem-object.c	Tue Jan  6 14:32:06 2009
@@ -304,15 +304,14 @@
 
 	totem_signal_block_by_data (totem->playlist, totem);
 
-	end = totem_playlist_get_last (totem->playlist);
 	playlist_changed = totem_playlist_add_mrl_with_cursor (totem->playlist, uri, display_name);
 	if (add_to_recent != FALSE)
 		gtk_recent_manager_add_item (totem->recent_manager, uri);
+	end = totem_playlist_get_last (totem->playlist);
 
 	totem_signal_unblock_by_data (totem->playlist, totem);
 
-	if (playlist_changed && end != -1)
-	{
+	if (playlist_changed && end != -1) {
 		char *mrl, *subtitle;
 
 		subtitle = NULL;



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