openbsd-ports/audio/hydrogen/patches/patch-src_lib_FLACFile_cpp
mgrimm 2c86a3339a Make Hydrogen deal with the audio/flac update:
- Fix WANTLIB and LIB_DEPENDS,
 - add -logg to LDFLAGS, as libOggFLAC is now part of libFLAC and depends on it,
 - adjust to API changes.

ok naddy@
2007-09-18 18:30:35 +00:00

23 lines
732 B
Plaintext

$OpenBSD: patch-src_lib_FLACFile_cpp,v 1.1 2007/09/18 18:30:35 mgrimm Exp $
--- src/lib/FLACFile.cpp.orig Tue Nov 8 10:31:22 2005
+++ src/lib/FLACFile.cpp Sun Sep 16 12:13:04 2007
@@ -164,15 +164,13 @@ void FLACFile_real::load( string sFilename )
}
set_metadata_ignore_all();
- set_filename( sFilename.c_str() );
- State s=init();
- if( s != FLAC__FILE_DECODER_OK ) {
+ if( FLAC__STREAM_DECODER_INIT_STATUS_OK != init( sFilename.c_str() ) ) {
errorLog( "[load] Error in init()" );
}
- if ( process_until_end_of_file() == false ) {
- errorLog( "[load] Error in process_until_end_of_file()" );
+ if ( process_until_end_of_stream() == false ) {
+ errorLog( "[load] Error in process_until_end_of_stream()" );
}
}