Index: /trunk/src/VBox/Main/MediumImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/MediumImpl.cpp	(revision 31299)
+++ /trunk/src/VBox/Main/MediumImpl.cpp	(revision 31300)
@@ -3232,4 +3232,13 @@
 
     return strFormat;
+}
+
+/**
+ * Returns the medium device type. Must have caller + locking!
+ * @return
+ */
+DeviceType_T Medium::getDeviceType() const
+{
+    return m->devType;
 }
 
Index: /trunk/src/VBox/Main/VirtualBoxImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/VirtualBoxImpl.cpp	(revision 31299)
+++ /trunk/src/VBox/Main/VirtualBoxImpl.cpp	(revision 31300)
@@ -2825,5 +2825,5 @@
         if (found)
         {
-            if (pMedium->getType() != mediumType)
+            if (pMedium->getDeviceType() != mediumType)
             {
                 if (mediumType == DeviceType_DVD)
Index: /trunk/src/VBox/Main/include/MediumImpl.h
===================================================================
--- /trunk/src/VBox/Main/include/MediumImpl.h	(revision 31299)
+++ /trunk/src/VBox/Main/include/MediumImpl.h	(revision 31300)
@@ -164,4 +164,5 @@
     const ComObjPtr<MediumFormat> & getMediumFormat() const;
     uint64_t getSize() const;
+    DeviceType_T getDeviceType() const;
     MediumType_T getType() const;
     Utf8Str getName();
