Skip to content

Commit

Permalink
Revert "Add support for the "compilation" tag in mp3, mp4 and ogg.".
Browse files Browse the repository at this point in the history
  • Loading branch information
ihlades committed Mar 1, 2011
1 parent ffb2977 commit f8bfee6
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 25 deletions.
7 changes: 0 additions & 7 deletions core/java/android/provider/MediaStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -898,13 +898,6 @@ public interface AudioColumns extends MediaColumns {
* @hide
*/
public static final String ALBUM_ARTIST = "album_artist";

/**
* Whether the song is part of a compilation
* <P>Type: TEXT</P>
* @hide
*/
public static final String COMPILATION = "compilation";

/**
* A non human readable key calculated from the ARTIST, used for
Expand Down
1 change: 0 additions & 1 deletion include/media/mediametadataretriever.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ enum {
METADATA_KEY_MIMETYPE = 22,
METADATA_KEY_DISC_NUMBER = 23,
METADATA_KEY_ALBUMARTIST = 24,
METADATA_KEY_COMPILATION = 25,
// Add more here...
};

Expand Down
1 change: 0 additions & 1 deletion include/media/stagefright/MetaData.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ enum {
kKeyDiscNumber = 'dnum', // cstring
kKeyDate = 'date', // cstring
kKeyWriter = 'writ', // cstring
kKeyCompilation = 'cpil', // cstring
kKeyTimeScale = 'tmsl', // int32_t

// video profile and level
Expand Down
1 change: 0 additions & 1 deletion media/java/android/media/MediaMetadataRetriever.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,5 @@ protected void finalize() throws Throwable {
public static final int METADATA_KEY_MIMETYPE = 22;
public static final int METADATA_KEY_DISCNUMBER = 23;
public static final int METADATA_KEY_ALBUMARTIST = 24;
public static final int METADATA_KEY_COMPILATION = 25;
// Add more here...
}
1 change: 0 additions & 1 deletion media/libstagefright/MP3Extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ sp<MetaData> MP3Extractor::getMetaData() {
{ kKeyAuthor, "TXT", "TEXT" },
{ kKeyCDTrackNumber, "TRK", "TRCK" },
{ kKeyDiscNumber, "TPA", "TPOS" },
{ kKeyCompilation, "TCP", "TCMP" },
};
static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]);

Expand Down
11 changes: 0 additions & 11 deletions media/libstagefright/MPEG4Extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,17 +1176,6 @@ status_t MPEG4Extractor::parseMetaData(off_t offset, size_t size) {
metadataKey = kKeyGenre;
break;
}
case FOURCC('c', 'p', 'i', 'l'):
{
if (size == 9 && flags == 21) {
char tmp[16];
sprintf(tmp, "%d",
(int)buffer[size-1]);

mFileMetaData->setCString(kKeyCompilation, tmp);
}
break;
}
case FOURCC('t', 'r', 'k', 'n'):
{
if (size == 16 && flags == 0) {
Expand Down
1 change: 0 additions & 1 deletion media/libstagefright/OggExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,6 @@ void MyVorbisExtractor::parseFileMetaData() {
{ "ALBUM", kKeyAlbum },
{ "ALBUMARTIST", kKeyAlbumArtist },
{ "ALBUM ARIST", kKeyAlbumArtist },
{ "COMPILATION", kKeyCompilation },
{ "COMPOSER", kKeyComposer },
{ "GENRE", kKeyGenre },
{ "AUTHOR", kKeyAuthor },
Expand Down
1 change: 0 additions & 1 deletion media/libstagefright/StagefrightMediaScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ status_t StagefrightMediaScanner::processFile(
{ "year", METADATA_KEY_YEAR },
{ "duration", METADATA_KEY_DURATION },
{ "writer", METADATA_KEY_WRITER },
{ "compilation", METADATA_KEY_COMPILATION },
};
static const size_t kNumEntries = sizeof(kKeyMap) / sizeof(kKeyMap[0]);

Expand Down
1 change: 0 additions & 1 deletion media/libstagefright/StagefrightMetadataRetriever.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ void StagefrightMetadataRetriever::parseMetaData() {
{ kKeyTitle, METADATA_KEY_TITLE },
{ kKeyYear, METADATA_KEY_YEAR },
{ kKeyWriter, METADATA_KEY_WRITER },
{ kKeyCompilation, METADATA_KEY_COMPILATION },
};
static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]);

Expand Down

0 comments on commit f8bfee6

Please sign in to comment.