Package: totem
Version: 2.16.3-2
Severity: normal

Totem does not load playlist nor continue playback when restoring from
session.

Steps to reproduce:
1. Start totem
2. Populate playlist, play something
3. Logout (tried both in KDE and in GNOME)
4. Login. totem starts but with empty playlist

Attached patch (or hack?) fixed the problem for me.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-k7
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to cs_CZ.UTF-8)

Versions of packages totem depends on:
ii  totem-xine                    2.16.3-2   A simple media player for the Gnom

totem recommends no packages.

-- no debconf information
--- totem-session.c.orig	2005-04-13 14:41:30.000000000 +0200
+++ totem-session.c	2006-11-22 22:44:44.000000000 +0100
@@ -111,7 +111,7 @@
 void
 totem_session_restore (Totem *totem, char **argv)
 {
-	char *path, *mrl;
+	char *path, *mrl, *uri;
 
 	g_return_if_fail (argv[0] != NULL);
 	path = argv[0];
@@ -122,12 +122,15 @@
 		return;
 	}
 
+	uri = gnome_vfs_get_uri_from_local_path (path);
+
 	totem_signal_block_by_data (totem->playlist, totem);
 
-	if (totem_playlist_add_mrl (totem->playlist, path, NULL) == FALSE)
+	if (totem_playlist_add_mrl (totem->playlist, uri, NULL) == FALSE)
 	{
 		totem_signal_unblock_by_data (totem->playlist, totem);
 		totem_action_set_mrl (totem, NULL);
+		g_free (uri);
 		return;
 	}
 
@@ -147,6 +150,7 @@
 	bacon_video_widget_pause (totem->bvw);
 
 	g_free (mrl);
+	g_free (uri);
 
 	return;
 }

Reply via email to