GNOME Bugzilla – Bug 633764
DAP: Fix transcoding of files without profiles
Last modified: 2010-11-07 22:56:57 UTC
When a source file to be transferred to a DAP did not match any available profile, it was not transcoded due to the fact that the extension returned was null and many in AcceptableMimeTypes for a device suffered the same. In that case null == null and no transcoding was performed.
Created attachment 173664 [details] [review] DAP: Fix transcoding of files without profiles When a source file to be transferred to a DAP did not match any available profile, it was not transcoded due to the fact that the extension returned was null and many in AcceptableMimeTypes for a device suffered the same. In that case null == null and no transcoding was performed.
Review of attachment 173664 [details] [review]: ::: src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs @@ +339,3 @@ { foreach (string mimetype in AcceptableMimeTypes) { + string extension = ServiceManager.MediaProfileManager.GetExtensionForMimeType (track.MimeType); Let's move this above the foreach, and then we can avoid the foreach entirely if extension == null.
Created attachment 173665 [details] [review] DAP: Fix transcoding of files without profiles When a source file to be transferred to a DAP did not match any available profile, it was not transcoded due to the fact that the extension returned was null and many in AcceptableMimeTypes for a device suffered the same. In that case null == null and no transcoding was performed.
Review of attachment 173665 [details] [review]: Committed, thanks