// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PV2WAY_ENGINE_SDKINFO_LABEL "1021272"
+#define PV2WAY_ENGINE_SDKINFO_LABEL "1021968"
#define PV2WAY_ENGINE_SDKINFO_DATE 0x20091015
#endif //PV_2WAY_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1021272"
+#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1021968"
#define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20091015
#endif //PV_AUTHOR_SDKINFO_H_INCLUDED
// This header file is automatically generated at build-time
// *** OFFICIAL RELEASE INFO -- Will not auto update
-#define PVPLAYER_ENGINE_SDKINFO_LABEL "1021272"
+#define PVPLAYER_ENGINE_SDKINFO_LABEL "1021968"
#define PVPLAYER_ENGINE_SDKINFO_DATE 0x20091015
#endif //PV_PLAYER_SDKINFO_H_INCLUDED
}
}
- OSCL_wHeapString<OsclMemAllocator> getCreationDate()
+ OSCL_wString& getCreationDate()
{
if (_pmovieHeaderAtom != NULL)
{
return _nextTrackID;
}
- OSCL_wHeapString<OsclMemAllocator> getCreationDate()
+ OSCL_wString& getCreationDate()
{
- return (convertTimeToDate(_creationTime));
+ convertTimeToDate();
+ return (iCreationDataString);
}
private:
- OSCL_wHeapString<OsclMemAllocator> convertTimeToDate(uint32 time);
+ OSCL_wHeapString<OsclMemAllocator> iCreationDataString;
+ void convertTimeToDate();
uint32 _creationTime; // 4/8 (32/64bits) -- Will templatize later - using 32bits (version 0) for now
uint64 _creationTime64;
OSCL_wString& getPVRating(MP4FFParserOriginalCharEnc &charType) ;
OSCL_wString& getPVCopyright(MP4FFParserOriginalCharEnc &charType) ;
OSCL_wString& getPVVersion(MP4FFParserOriginalCharEnc &charType) ;
- OSCL_wHeapString<OsclMemAllocator> getCreationDate(MP4FFParserOriginalCharEnc &charType) ;
+ OSCL_wString& getCreationDate(MP4FFParserOriginalCharEnc &charType) ;
// from 'ftyp' atom
uint32 getCompatibiltyMajorBrand()
charType = ORIGINAL_CHAR_TYPE_UTF16;
return _rating;
}
- OSCL_wHeapString<OsclMemAllocator> getPVCreationDate(MP4FFParserOriginalCharEnc &charType)
+ OSCL_wString& getPVCreationDate(MP4FFParserOriginalCharEnc &charType)
{
charType = ORIGINAL_CHAR_TYPE_UTF16;
return _creationDate;
// Empty
}
-OSCL_wHeapString<OsclMemAllocator> MovieHeaderAtom::convertTimeToDate(uint32 time)
+void MovieHeaderAtom::convertTimeToDate()
{
OSCL_HeapString<OsclMemAllocator> date;
+ uint32 time = _creationTime;
char buf[64];
wDate,
(int32)(wDateBufLen));
- OSCL_wHeapString<OsclMemAllocator> wDateStr;
- wDateStr += wDate;
+ iCreationDataString = wDate;
- return (wDateStr);
+ return;
}
_success = false;
}
- // skip ID3 tag parsing for progressive playback for now
- uint32 bufferCapacity = AtomUtils::getFileBufferingCapacity(fp);
- if (0 == bufferCapacity)
+ //populate metadata only if parsing was successful
+ if (_success)
{
- //Check to see if ID3V2 was present. In case it was present, ID3Parcom would have
- //traversed ID3V1 as well. In case it was not there, ID3V2Atom would not have been created
- //in MetaData Atom and hence parse ID3V1 now
- if (!IsID3V2Present())
+ // skip ID3 tag parsing for progressive playback for now
+ uint32 bufferCapacity = AtomUtils::getFileBufferingCapacity(fp);
+ if (0 == bufferCapacity)
{
- PV_MP4_FF_NEW(fp->auditCB, PVID3ParCom, (), _pID3Parser);
- parseID3Header(fp);
+ //Check to see if ID3V2 was present. In case it was present, ID3Parcom would have
+ //traversed ID3V1 as well. In case it was not there, ID3V2Atom would not have been created
+ //in MetaData Atom and hence parse ID3V1 now
+ if (!IsID3V2Present())
+ {
+ PV_MP4_FF_NEW(fp->auditCB, PVID3ParCom, (), _pID3Parser);
+ parseID3Header(fp);
+ }
+ }
+ //Populate the title vector with all the title metadata values.
+ if (!populateMetadataVectors())
+ {
+ PVMF_MP4FFPARSER_LOGMEDIASAMPELSTATEVARIABLES((0, "Mpeg4File::populateMetadataVector() Failed"));
}
}
- //Populate the title vector with all the title metadata values.
- if (!populateMetadataVectors())
- {
- PVMF_MP4FFPARSER_LOGMEDIASAMPELSTATEVARIABLES((0, "Mpeg4File::populateMetadataVector() Failed"));
- }
-
}
}
}
-OSCL_wHeapString<OsclMemAllocator> Mpeg4File::getCreationDate(MP4FFParserOriginalCharEnc &charType)
+OSCL_wString& Mpeg4File::getCreationDate(MP4FFParserOriginalCharEnc &charType)
{
PVUserDataAtom *patom = NULL;
if (_puserDataAtom != NULL)
return _emptyString;
}
}
- else
+ else if (_pmovieAtom != NULL)
{
return (_pmovieAtom->getCreationDate());
}
+ else
+ {
+ return _emptyString;
+ }
}
// Destructor