banshee r3816 - in trunk/banshee: . src/Dap/Banshee.Dap/Banshee.Dap



Author: gburt
Date: Thu Apr 24 00:26:41 2008
New Revision: 3816
URL: http://svn.gnome.org/viewvc/banshee?rev=3816&view=rev

Log:
2008-04-23  Gabriel Burt  <gabriel burt gmail com>

	* src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs: Handle the situation of
	the user not having any encoders and trying to transfer an unsupported
	file type.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs

Modified: trunk/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs	(original)
+++ trunk/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs	Thu Apr 24 00:26:41 2008
@@ -114,6 +114,10 @@
         protected override void AddTrackAndIncrementCount (DatabaseTrackInfo track)
         {
             if (TrackNeedsTranscoding (track)) {
+                if (PreferredConfiguration == null) {
+                    throw new Exception (Catalog.GetString ("Format not supported by device, and no converter found"));
+                }
+
                 ServiceManager.Get <TranscoderService> ().Enqueue (track, PreferredConfiguration, delegate (TrackInfo ti, SafeUri outUri) {
                     AddTrackJob.Status = String.Format ("{0} - {1}", track.ArtistName, track.TrackTitle);
                     try {



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