harvesterplugins/media/video/src/cpixmediavideodoc.cpp
changeset 18 1edf350003c5
parent 16 e918432ddd92
child 26 367228f82b66
--- a/harvesterplugins/media/video/src/cpixmediavideodoc.cpp	Mon Aug 09 12:23:41 2010 +0530
+++ b/harvesterplugins/media/video/src/cpixmediavideodoc.cpp	Wed Aug 25 13:02:31 2010 +0530
@@ -104,15 +104,22 @@
     if(aObject.Property( titlePropDef, property ) != KErrNotFound)
         {
         CMdETextProperty* textProperty = ( CMdETextProperty* ) property;
-        if( textProperty->Value().Compare(KNullDesC) > 0 )AddToFieldExcerptL(name); //Add name to excerpt field
+        if( textProperty->Value().Compare(KNullDesC) > 0 )
+            {
+#ifdef USE_HIGHLIGHTER    
+            index_item->AddHLDisplayFieldL(textProperty->Value());
+            AddToFieldExcerptL(name); //Add name to excerpt field
+#else  
+            AddToFieldExcerptL(name); //Add name to excerpt field
+#endif
+            }
+            else
+            {
+#ifdef USE_HIGHLIGHTER    
+            index_item->AddHLDisplayFieldL(name);
+#endif
+            }
         }
-#ifdef USE_HIGHLIGHTER
-    //Get the media file extension and store
-    TBuf<KMaxExtLength> extension;        
-    GetExtension(aObject.Uri(),extension);
-    AddToFieldExcerptL(extension);
-#endif 
-
     //URI and Excerpt is done add additional properties here 
     
     CMdEPropertyDef& artistPropDef = aObjectDef.GetPropertyDefL(MdeConstants::MediaObject::KArtistProperty );