banshee r3894 - in trunk/banshee: . src/Dap/Banshee.Dap/Banshee.Dap
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3894 - in trunk/banshee: . src/Dap/Banshee.Dap/Banshee.Dap
- Date: Tue, 6 May 2008 18:45:09 +0100 (BST)
Author: gburt
Date: Tue May 6 17:45:09 2008
New Revision: 3894
URL: http://svn.gnome.org/viewvc/banshee?rev=3894&view=rev
Log:
2008-05-06 Gabriel Burt <gabriel burt gmail com>
* src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs: Fix a bug where we
attempted to transcode video files. We don't support that yet.
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 Tue May 6 17:45:09 2008
@@ -198,8 +198,10 @@
IncrementAddedTracks ();
return;
}
-
- if (PreferredConfiguration == null) {
+
+ // If it's a video and needs transcoding, we don't support that yet
+ // TODO have preferred profiles for Audio and Video separately
+ if (PreferredConfiguration == null || (track.MediaAttributes & TrackMediaAttributes.VideoStream) != 0) {
string format = System.IO.Path.GetExtension (track.Uri.LocalPath);
format = String.IsNullOrEmpty (format) ? Catalog.GetString ("Unknown") : format.Substring (1);
throw new ApplicationException (String.Format (Catalog.GetString (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]