Index: src/totem.c
===================================================================
--- src/totem.c	(revision 5500)
+++ src/totem.c	(working copy)
@@ -519,9 +519,9 @@
 static gboolean
 totem_action_load_media (Totem *totem, TotemDiscMediaType type, const char *device)
 {
-	char **mrls, *msg;
+	char **mrls, *msg = NULL;
 	GError *error = NULL;
-	const char *link, *link_text, *secondary;
+	const char *link = NULL, *link_text = NULL, *secondary = NULL;
 	gboolean retval;
 
 	mrls = bacon_video_widget_get_mrls (totem->bvw, type, device, &error);
Index: src/totem-object.c
===================================================================
--- src/totem-object.c	(revision 5500)
+++ src/totem-object.c	(working copy)
@@ -324,6 +324,12 @@
 	}
 }
 
+char *
+totem_get_current_mrl (Totem *totem)
+{
+	return totem_playlist_get_current_mrl (totem->playlist, NULL);
+}
+
 guint
 totem_get_playlist_length (Totem *totem)
 {
Index: src/totem.h
===================================================================
--- src/totem.h	(revision 5500)
+++ src/totem.h	(working copy)
@@ -183,6 +183,7 @@
 						 const char *uri,
 						 const char *display_name,
 						 gboolean add_to_recent);
+char *  totem_get_current_mrl			(Totem *totem);
 
 /* Sidebar handling */
 void    totem_add_sidebar_page			(Totem *totem,
Index: bindings/python/totem.defs
===================================================================
--- bindings/python/totem.defs	(revision 5500)
+++ bindings/python/totem.defs	(working copy)
@@ -389,6 +389,12 @@
   (return-type "gint64")
 )
 
+(define-method get_current_mrl
+  (of-object "TotemObject")
+  (c-name "totem_get_current_mrl")
+  (return-type "char*")
+)
+
 (define-method add_sidebar_page
   (of-object "TotemObject")
   (c-name "totem_add_sidebar_page")
