banshee r5101 - in branches/banshee/stable: . build/m4/shamrock data/desktop-files po src/Core/Banshee.CollectionIndexer/Banshee.Collection.Indexer.RemoteHelper src/Core/Banshee.CollectionIndexer/Demo src/Core/Banshee.Services/Banshee.Collection src/Core/Banshee.Services/Banshee.Collection.Database src/Core/Banshee.Services/Banshee.Collection.Indexer src/Core/Banshee.Services/Banshee.MediaEngine src/Core/Banshee.Services/Banshee.PlaybackController src/Core/Banshee.ThickClient/Banshee.Addins.Gui src/Core/Banshee.ThickClient/Banshee.Collection.Gui src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor src/Core/Banshee.ThickClient/Banshee.Sources.Gui src/Core/Banshee.ThickClient/ThemeIcons/22x22/actions src/Dap/Banshee.Dap.MassStorage src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp src/Dap/Banshee.Dap/Banshee.Dap src/Dap/Banshee.Dap/Banshee.Dap.Gui src/Extensions/Banshee.Daap src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio src/Extensions/Banshee.Lastfm src/Extensions/B anshee.PlayQueue src/Extensions/Banshee.Podcasting/Banshee.Podcasting src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui src/Extensions/Banshee.Podcasting/ThemeIcons/16x16/categories src/Extensions/Banshee.Podcasting/ThemeIcons/16x16/status src/Extensions/Banshee.Podcasting/ThemeIcons/22x22/categories src/Extensions/Banshee.Podcasting/ThemeIcons/48x48/categories src/Libraries/Hyena src/Libraries/Hyena.Gui src/Libraries/Lastfm src/Libraries/Lastfm.Gui src/Libraries/Lastfm.Gui/Lastfm.Gui src/Libraries/Lastfm.Gui/Resources src/Libraries/Migo/Migo.DownloadCore src/Libraries/Migo/Migo.Net src/Libraries/Migo/Migo.Syndication src/Libraries/Migo/Migo.TaskCore src/Libraries/Mono.Media/Media.Playlists.Xspf src/Libraries/Mtp tests/Mono.Media/xspf tests/old



Author: gburt
Date: Wed Mar  4 21:29:58 2009
New Revision: 5101
URL: http://svn.gnome.org/viewvc/banshee?rev=5101&view=rev

Log:
Merge 5078:

    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:
   branches/banshee/stable/   (props changed)
   branches/banshee/stable/build/m4/shamrock/nunit.m4   (props changed)
   branches/banshee/stable/data/desktop-files/banshee-1.desktop.mime   (props changed)
   branches/banshee/stable/po/sr latin po   (props changed)
   branches/banshee/stable/src/Core/Banshee.CollectionIndexer/Banshee.Collection.Indexer.RemoteHelper/   (props changed)
   branches/banshee/stable/src/Core/Banshee.CollectionIndexer/Demo/   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseAlbumListModel.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistInfo.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseArtistListModel.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseFilterListModel.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackInfo.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseTrackListModel.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection.Indexer/CollectionIndexerService.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.Collection/FilterListModel.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.MediaEngine/PlayerEvent.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.Services/Banshee.PlaybackController/IPlaybackControllerService.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinDetailsDialog.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinTile.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Addins.Gui/AddinView.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/EditorEditableUndoAdapter.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/PageNavigationEntry.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/CompositeTrackSourceContents.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/FilteredListSourceContents.cs   (props changed)
   branches/banshee/stable/src/Core/Banshee.ThickClient/ThemeIcons/22x22/actions/encode.png   (props changed)
   branches/banshee/stable/src/Dap/Banshee.Dap.MassStorage/   (props changed)
   branches/banshee/stable/src/Dap/Banshee.Dap.Mtp/Banshee.Dap.Mtp/MtpTrackInfo.cs   (props changed)
   branches/banshee/stable/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapPropertiesDialog.cs   (props changed)
   branches/banshee/stable/src/Dap/Banshee.Dap/Banshee.Dap/DapService.cs   (props changed)
   branches/banshee/stable/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs   (props changed)
   branches/banshee/stable/src/Dap/Banshee.Dap/Banshee.Dap/RemovableSource.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Daap/Banshee.Daap.addin.xml   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.InternetRadio/Banshee.InternetRadio/StationEditor.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Lastfm/   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue.addin.xml   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastFeedModel.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastTrackInfo.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastFeedView.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastItemView.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastSourceContents.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService_Interface.cs   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/ThemeIcons/16x16/categories/podcast.png   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/ThemeIcons/16x16/status/podcast-new.png   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/ThemeIcons/22x22/categories/podcast.png   (props changed)
   branches/banshee/stable/src/Extensions/Banshee.Podcasting/ThemeIcons/48x48/categories/podcast.png   (props changed)
   branches/banshee/stable/src/Libraries/Hyena/   (props changed)
   branches/banshee/stable/src/Libraries/Hyena.Gui/   (props changed)
   branches/banshee/stable/src/Libraries/Lastfm/   (props changed)
   branches/banshee/stable/src/Libraries/Lastfm.Gui/Lastfm.Gui/   (props changed)
   branches/banshee/stable/src/Libraries/Lastfm.Gui/Resources/badge-hover.png   (props changed)
   branches/banshee/stable/src/Libraries/Lastfm.Gui/Resources/badge.png   (props changed)
   branches/banshee/stable/src/Libraries/Lastfm.Gui/Test.cs   (props changed)
   branches/banshee/stable/src/Libraries/Migo/Migo.DownloadCore/   (props changed)
   branches/banshee/stable/src/Libraries/Migo/Migo.Net/   (props changed)
   branches/banshee/stable/src/Libraries/Migo/Migo.Syndication/   (props changed)
   branches/banshee/stable/src/Libraries/Migo/Migo.TaskCore/   (props changed)
   branches/banshee/stable/src/Libraries/Mono.Media/Media.Playlists.Xspf/   (props changed)
   branches/banshee/stable/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs
   branches/banshee/stable/src/Libraries/Mtp/   (props changed)
   branches/banshee/stable/tests/Mono.Media/xspf/   (props changed)
   branches/banshee/stable/tests/old/BansheeTests.cs   (props changed)
   branches/banshee/stable/tests/old/GuiTests.cs   (props changed)

Modified: branches/banshee/stable/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs
==============================================================================
--- branches/banshee/stable/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs	(original)
+++ branches/banshee/stable/src/Libraries/Mono.Media/Media.Playlists.Xspf/Playlist.cs	Wed Mar  4 21:29:58 2009
@@ -196,7 +196,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]