From a64c8c79af1a15911c55306d83a797fa50969f77 Mon Sep 17 00:00:00 2001 From: niko Date: Mon, 20 Jul 2009 15:07:26 -0700 Subject: Added native metadata support. Metadata.java: Fixed typo 8k != 8092. The comment was correct though. In Metadata.h, the new Metadata class is declared in the ns android::media to limit the chances of conflict with other packages. The MetadataType in MediaPlayerInterface is gone and moved to Metadata as an inner typedef. Similarly the SortedVector instance have been replace by a new type Metadata::Filter. All the keys declared in the java counterpart are also in Metadata.h. Metadata.cpp: Contains the implementation of the native metadata packing. There an associated change in the opencore package that should go in at the same time as this one. --- media/libmediaplayerservice/StagefrightPlayer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'media/libmediaplayerservice/StagefrightPlayer.cpp') diff --git a/media/libmediaplayerservice/StagefrightPlayer.cpp b/media/libmediaplayerservice/StagefrightPlayer.cpp index 8597275..9a06d13 100644 --- a/media/libmediaplayerservice/StagefrightPlayer.cpp +++ b/media/libmediaplayerservice/StagefrightPlayer.cpp @@ -144,7 +144,7 @@ status_t StagefrightPlayer::seekTo(int msec) { if (mPlayer == NULL) { return NO_INIT; } - + status_t err = mPlayer->seekTo((int64_t)msec * 1000); sendEvent(MEDIA_SEEK_COMPLETE); @@ -205,9 +205,4 @@ void StagefrightPlayer::setAudioSink(const sp &audioSink) { } } -status_t StagefrightPlayer::getMetadata( - const SortedVector &ids, Parcel *records) { - return INVALID_OPERATION; -} - } // namespace android -- cgit v1.1