summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-02-12 19:23:13 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-02-12 19:23:13 +0000
commitdec0e9ed5f5b7edeb84a49ed8913c564ff5605c4 (patch)
tree569b517a1f55d06036f9f5078985c9b082e9d052 /media-sound/hydrogen/files
parentstable on amd64 (diff)
downloadgentoo-2-dec0e9ed5f5b7edeb84a49ed8913c564ff5605c4.tar.gz
gentoo-2-dec0e9ed5f5b7edeb84a49ed8913c564ff5605c4.tar.bz2
gentoo-2-dec0e9ed5f5b7edeb84a49ed8913c564ff5605c4.zip
~dep to flac 1.1.2, rev bump in ~arch with a flac 1.1.3 compatibility fix, bug #152007
(Portage version: 2.1.2-r9)
Diffstat (limited to 'media-sound/hydrogen/files')
-rw-r--r--media-sound/hydrogen/files/digest-hydrogen-0.9.3-r13
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch45
2 files changed, 48 insertions, 0 deletions
diff --git a/media-sound/hydrogen/files/digest-hydrogen-0.9.3-r1 b/media-sound/hydrogen/files/digest-hydrogen-0.9.3-r1
new file mode 100644
index 000000000000..6b770b479057
--- /dev/null
+++ b/media-sound/hydrogen/files/digest-hydrogen-0.9.3-r1
@@ -0,0 +1,3 @@
+MD5 d5840b5d330d433d00ea1727efb0fc7f hydrogen-0.9.3.tar.gz 2771792
+RMD160 224e7c99208f7e9ae8c70a6bab1a7c3b20d1eb56 hydrogen-0.9.3.tar.gz 2771792
+SHA256 b570568b32a0be9ad2ef90538e3156de6a9c50d8dd5f2863d6955290d98c841a hydrogen-0.9.3.tar.gz 2771792
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch
new file mode 100644
index 000000000000..29a263c26273
--- /dev/null
+++ b/media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch
@@ -0,0 +1,45 @@
+--- src/lib/FLACFile.cpp.old 2007-02-11 20:12:34.000000000 +0100
++++ src/lib/FLACFile.cpp 2007-02-11 20:18:25.000000000 +0100
+@@ -33,6 +33,13 @@
+ //#include "FLAC/file_decoder.h"
+ #include <FLAC++/all.h>
+
++#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
++#define LEGACY_FLAC
++#else
++#undef LEGACY_FLAC
++#endif
++
++
+ /// Reads a FLAC file...not optimized yet
+ class FLACFile_real : public FLAC::Decoder::File, public Object
+ {
+@@ -164,16 +171,28 @@
+ }
+
+ set_metadata_ignore_all();
++
++#ifdef LEGACY_FLAC
+ set_filename( sFilename.c_str() );
+
+ State s=init();
+ if( s != FLAC__FILE_DECODER_OK ) {
++#else
++ FLAC__StreamDecoderInitStatus s=init(sFilename.c_str() );
++ if(s!=FLAC__STREAM_DECODER_INIT_STATUS_OK) {
++#endif
+ errorLog( "[load] Error in init()" );
+ }
+
++#ifdef LEGACY_FLAC
+ if ( process_until_end_of_file() == false ) {
+ errorLog( "[load] Error in process_until_end_of_file()" );
+ }
++#else
++ if ( process_until_end_of_stream() == false ) {
++ errorLog( "[load] Error in process_until_end_of_stream()" );
++ }
++#endif
+ }
+
+