diff options
Diffstat (limited to 'audio/darkice/patches/patch-ab')
-rw-r--r-- | audio/darkice/patches/patch-ab | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/darkice/patches/patch-ab b/audio/darkice/patches/patch-ab new file mode 100644 index 00000000000..34ef3814857 --- /dev/null +++ b/audio/darkice/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.3 2008/08/02 17:43:56 dholland Exp $ + +--- src/LameLibEncoder.cpp~ 2006-05-19 08:35:25.000000000 -0400 ++++ src/LameLibEncoder.cpp 2008-08-02 13:37:41.000000000 -0400 +@@ -79,10 +79,10 @@ + lameGlobalFlags = lame_init(); + + // ugly lame returns -1 in a pointer on allocation errors +- if ( !lameGlobalFlags || ((int)lameGlobalFlags) == -1 ) { ++ if ( !lameGlobalFlags || lameGlobalFlags == (lame_global_flags *)-1 ) { + throw Exception( __FILE__, __LINE__, + "lame lib init error", +- (int) lameGlobalFlags); ++ (int)(intptr_t)lameGlobalFlags); + } + + if ( 0 > lame_set_num_channels( lameGlobalFlags, getInChannel()) ) { |