--- a/harvester/harvesterplugins/RTPPlugin/src/harvesterrtpplugin.cpp Tue Feb 02 00:24:33 2010 +0200
+++ b/harvester/harvesterplugins/RTPPlugin/src/harvesterrtpplugin.cpp Fri Feb 19 23:14:48 2010 +0200
@@ -153,6 +153,15 @@
}
// ---------------------------------------------------------------------------
+// CHarvesterAudioPlugin::GetMimeType (from CHarvesterPlugin)
+// ---------------------------------------------------------------------------
+//
+void CHarvesterRtpPlugin::GetMimeType( const TDesC& /*aUri*/, TDes& aMimeType )
+ {
+ aMimeType = KRtpClipMimetype;
+ }
+
+// ---------------------------------------------------------------------------
// Gather metadata
// ---------------------------------------------------------------------------
//
@@ -271,6 +280,9 @@
// File size
CMdeObjectWrapper::HandleObjectPropertyL(mdeObject,
*iPropDefs->iSizePropertyDef, &aClipDetails.iFileSize, aIsAdd );
+ // Mime Type
+ CMdeObjectWrapper::HandleObjectPropertyL(mdeObject,
+ *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd );
}
// Title (is set from URI by default)
@@ -280,10 +292,6 @@
*iPropDefs->iTitlePropertyDef, &aClipDetails.iTitle, EFalse );
}
- // Mime Type
- CMdeObjectWrapper::HandleObjectPropertyL(mdeObject,
- *iPropDefs->iItemTypePropertyDef, &aClipDetails.iMimeType, aIsAdd );
-
// Capture date
CMdeObjectWrapper::HandleObjectPropertyL(mdeObject,
*iPropDefs->iCaptureDatePropertyDef, &localModifiedTime, aIsAdd );