banshee r3846 - in trunk/banshee: . src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage src/Dap/Banshee.Dap/Banshee.Dap
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3846 - in trunk/banshee: . src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage src/Dap/Banshee.Dap/Banshee.Dap
- Date: Tue, 29 Apr 2008 22:32:39 +0100 (BST)
Author: gburt
Date: Tue Apr 29 21:32:38 2008
New Revision: 3846
URL: http://svn.gnome.org/viewvc/banshee?rev=3846&view=rev
Log:
2008-04-29 Gabriel Burt <gabriel burt gmail com>
* src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs:
* src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs:
Get media capabilities from the volume's parent (the block device).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
trunk/banshee/src/Dap/Banshee.Dap/Banshee.Dap/DapSource.cs
Modified: trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs (original)
+++ trunk/banshee/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs Tue Apr 29 21:32:38 2008
@@ -96,6 +96,10 @@
get { return base.HasMediaCapabilities || File.Exists (new SafeUri (IsAudioPlayerPath)); }
}
+ protected override IDeviceMediaCapabilities MediaCapabilities {
+ get { return volume.Parent.MediaCapabilities ?? base.MediaCapabilities; }
+ }
+
protected string IsAudioPlayerPath {
get { return System.IO.Path.Combine (volume.MountPoint, ".is_audio_player"); }
}
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 Apr 29 21:32:38 2008
@@ -245,7 +245,7 @@
get { return device.MediaCapabilities != null; }
}
- protected IDeviceMediaCapabilities MediaCapabilities {
+ protected virtual IDeviceMediaCapabilities MediaCapabilities {
get { return device.MediaCapabilities; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]