diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/gtkpod/MP4SetMetadata.diff | 117 | ||||
-rw-r--r-- | audio/gtkpod/MP4SetMetadata.diff.gz | bin | 967 -> 0 bytes | |||
-rw-r--r-- | audio/gtkpod/gtkpod.SlackBuild | 2 |
3 files changed, 118 insertions, 1 deletions
diff --git a/audio/gtkpod/MP4SetMetadata.diff b/audio/gtkpod/MP4SetMetadata.diff new file mode 100644 index 0000000000000..6f01a50d9dda0 --- /dev/null +++ b/audio/gtkpod/MP4SetMetadata.diff @@ -0,0 +1,117 @@ +diff -ur gtkpod-0.99.14.orig/src/mp4file.c gtkpod-0.99.14/src/mp4file.c +--- gtkpod-0.99.14.orig/src/mp4file.c 2009-01-17 23:52:32.000000000 -0600 ++++ gtkpod-0.99.14/src/mp4file.c 2010-03-16 22:12:08.719427169 -0500 +@@ -399,11 +399,7 @@ + #else + #warning "Album Artist field not supported with this version of libmp4v2. Album Artist support requires at least V1.6.0" + #endif +-#if HAVE_LIBMP4V2_2 +- if (MP4GetMetadataComposer(mp4File, &value) && value != NULL) +-#else + if (MP4GetMetadataWriter(mp4File, &value) && value != NULL) +-#endif + { + track->composer = charset_to_utf8 (value); + g_free(value); +@@ -413,11 +409,7 @@ + track->comment = charset_to_utf8 (value); + g_free(value); + } +-#if HAVE_LIBMP4V2_2 +- if (MP4GetMetadataReleaseDate(mp4File, &value) && value != NULL) +-#else + if (MP4GetMetadataYear(mp4File, &value) && value != NULL) +-#endif + { + track->year = atoi (value); + g_free(value); +@@ -447,11 +439,7 @@ + track->genre = charset_to_utf8 (value); + g_free(value); + } +-#if HAVE_LIBMP4V2_2 +- if (MP4GetMetadataBPM (mp4File, &numvalue)) +-#else + if (MP4GetMetadataTempo (mp4File, &numvalue)) +-#endif + { + track->BPM = numvalue; + } +@@ -541,29 +529,16 @@ + &m_track, &m_tracks); + gboolean has_disk = MP4GetMetadataDisk (mp4File, + &m_disk, &m_disks);*/ +-#if HAVE_LIBMP4V2_2 +- gboolean has_tempo = MP4GetMetadataBPM (mp4File, +- &m_tempo); +-#else + gboolean has_tempo = MP4GetMetadataTempo (mp4File, + &m_tempo); +-#endif + gboolean has_compilation = MP4GetMetadataCompilation (mp4File, + &m_cpl); + /* MP4GetMetadataName (mp4File, &m_name); + MP4GetMetadataArtist (mp4File, &m_artist); + MP4GetMetadataAlbumArtist (mp4File, &m_albumartist); +-#if HAVE_LIBMP4V2_2 +- MP4GetMetadataComposer (mp4File, &m_writer); +-#else + MP4GetMetadataWriter (mp4File, &m_writer); +-#endif + MP4GetMetadataComment (mp4File, &m_comment); +-#if HAVE_LIBMP4V2_2 +- MP4GetMetadataReleaseDate (mp4File, &m_year); +-#else + MP4GetMetadataYear (mp4File, &m_year); +-#endif + MP4GetMetadataAlbum (mp4File, &m_album); + MP4GetMetadataGenre (mp4File, &m_genre);*/ + MP4GetMetadataTool (mp4File, &m_tool); +@@ -584,11 +559,7 @@ + g_free (value); + #endif + value = charset_from_utf8 (track->composer); +-#if HAVE_LIBMP4V2_2 +- MP4SetMetadataComposer (mp4File, value); +-#else + MP4SetMetadataWriter (mp4File, value); +-#endif + g_free (value); + + value = charset_from_utf8 (track->comment); +@@ -596,11 +567,7 @@ + g_free (value); + + value = g_strdup_printf ("%d", track->year); +-#if HAVE_LIBMP4V2_2 +- MP4SetMetadataReleaseDate (mp4File, value); +-#else + MP4SetMetadataYear (mp4File, value); +-#endif + g_free (value); + + value = charset_from_utf8 (track->album); +@@ -611,11 +578,7 @@ + + MP4SetMetadataDisk (mp4File, track->cd_nr, track->cds); + +-#if HAVE_LIBMP4V2_2 +- MP4SetMetadataBPM (mp4File, track->BPM); +-#else + MP4SetMetadataTempo (mp4File, track->BPM); +-#endif + + value = charset_from_utf8 (track->grouping); + MP4SetMetadataGrouping (mp4File, value); +@@ -626,11 +589,7 @@ + g_free (value); + + #if MP4V2_HAS_METADATA_BUG +-#if HAVE_LIBMP4V2_2 +- if (has_tempo) MP4SetMetadataBPM (mp4File, m_tempo); +-#else + if (has_tempo) MP4SetMetadataTempo (mp4File, m_tempo); +-#endif + if (has_compilation) MP4SetMetadataCompilation (mp4File, m_cpl); + if (m_tool) MP4SetMetadataTool (mp4File, m_tool); + if (m_covert) MP4SetMetadataCoverArt (mp4File, m_covert, m_size); diff --git a/audio/gtkpod/MP4SetMetadata.diff.gz b/audio/gtkpod/MP4SetMetadata.diff.gz Binary files differdeleted file mode 100644 index 94b0fc2b45f2d..0000000000000 --- a/audio/gtkpod/MP4SetMetadata.diff.gz +++ /dev/null diff --git a/audio/gtkpod/gtkpod.SlackBuild b/audio/gtkpod/gtkpod.SlackBuild index bb9cb1d84b4dc..98674be9a3a1d 100644 --- a/audio/gtkpod/gtkpod.SlackBuild +++ b/audio/gtkpod/gtkpod.SlackBuild @@ -68,7 +68,7 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -zcat $CWD/MP4SetMetadata.diff.gz | patch -p1 || exit 1 +patch -p1 < $CWD/MP4SetMetadata.diff CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ |