banshee r5078 - trunk/banshee/src/Libraries/Mono.Media/Media.Playlists.Xspf
- From: eoinh svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r5078 - trunk/banshee/src/Libraries/Mono.Media/Media.Playlists.Xspf
- Date: Fri, 27 Feb 2009 02:56:37 +0000 (UTC)
Author: eoinh
Date: Fri Feb 27 02:56:36 2009
New Revision: 5078
URL: http://svn.gnome.org/viewvc/banshee?rev=5078&view=rev
Log:
2009-02-26 Eoin Hennessy <eoin randomrules org>
* src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs: The current
path is not gauranteed to be a valid Uri (especially when running from a
bundle on OSX). If creating the default base Uri from the current path
fails, set it to Location.
Modified:
trunk/banshee/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs
Modified: trunk/banshee/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs
==============================================================================
--- trunk/banshee/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs (original)
+++ trunk/banshee/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs Fri Feb 27 02:56:36 2009
@@ -255,7 +255,9 @@
path = System.Reflection.Assembly.GetEntryAssembly().Location;
}
path = Path.GetFullPath(path);
- default_base_uri = new Uri(path);
+ if (!Uri.TryCreate(path, UriKind.Absolute, out default_base_uri)) {
+ default_base_uri = Location;
+ }
}
return default_base_uri;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]