equal
deleted
inserted
replaced
157 * Destruction |
157 * Destruction |
158 */ |
158 */ |
159 CHarvesterVideoPlugin::~CHarvesterVideoPlugin() |
159 CHarvesterVideoPlugin::~CHarvesterVideoPlugin() |
160 { |
160 { |
161 delete iPropDefs; |
161 delete iPropDefs; |
|
162 iMimeTypeMappings.Close(); |
162 |
163 |
163 WRITELOG("CHarvesterVideoPlugin::CHarvesterVideoPlugin()"); |
164 WRITELOG("CHarvesterVideoPlugin::CHarvesterVideoPlugin()"); |
164 } |
165 } |
165 |
166 |
166 /** |
167 /** |
656 } |
657 } |
657 } |
658 } |
658 // Match MIME type for audio object with "audio" substring |
659 // Match MIME type for audio object with "audio" substring |
659 else if( MdsUtils::Find( mime, KAudio() ) != KErrNotFound ) |
660 else if( MdsUtils::Find( mime, KAudio() ) != KErrNotFound ) |
660 { |
661 { |
661 break; |
662 if( !aVHD.iVideoObject ) |
|
663 { |
|
664 break; |
|
665 } |
662 } |
666 } |
663 } |
667 } |
664 } |
668 } |
665 |
669 |
666 if( mime.Ptr() && ( mime.Length() > 0 ) ) |
670 if( mime.Ptr() && ( mime.Length() > 0 ) ) |
667 { |
671 { |
668 aVHD.iMimeBuf = mime.Alloc(); |
672 aVHD.iMimeBuf = mime.Alloc(); |
669 } |
673 } |
670 |
674 |
|
675 helixMetadata->ResetL(); |
671 CleanupStack::PopAndDestroy( helixMetadata ); |
676 CleanupStack::PopAndDestroy( helixMetadata ); |
672 |
677 |
673 // don't destory mime type pointers just clean array |
678 // don't destory mime type pointers just clean array |
674 CleanupStack::PopAndDestroy( &mimes ); |
679 CleanupStack::PopAndDestroy( &mimes ); |
675 } |
680 } |
1053 else |
1058 else |
1054 { |
1059 { |
1055 aType.Copy( KVideo ); |
1060 aType.Copy( KVideo ); |
1056 } |
1061 } |
1057 |
1062 |
|
1063 helixMetadata->ResetL(); |
1058 CleanupStack::PopAndDestroy( helixMetadata ); |
1064 CleanupStack::PopAndDestroy( helixMetadata ); |
1059 } |
1065 } |
1060 |
1066 |
1061 const THarvestingHandling* CHarvesterVideoPlugin::FindHandler( const TDesC& aUri ) |
1067 const THarvestingHandling* CHarvesterVideoPlugin::FindHandler( const TDesC& aUri ) |
1062 { |
1068 { |