pkgsrc - initial commit
[pkgsrc.git] / audio / darkice / patches / patch-ab
1 $NetBSD: patch-ab,v 1.3 2008/08/02 17:43:56 dholland Exp $
2
3 --- src/LameLibEncoder.cpp~     2006-05-19 08:35:25.000000000 -0400
4 +++ src/LameLibEncoder.cpp      2008-08-02 13:37:41.000000000 -0400
5 @@ -79,10 +79,10 @@
6      lameGlobalFlags = lame_init();
7  
8      // ugly lame returns -1 in a pointer on allocation errors
9 -    if ( !lameGlobalFlags || ((int)lameGlobalFlags) == -1 ) {
10 +    if ( !lameGlobalFlags || lameGlobalFlags == (lame_global_flags *)-1 ) {
11          throw Exception( __FILE__, __LINE__,
12                           "lame lib init error",
13 -                         (int) lameGlobalFlags);
14 +                         (int)(intptr_t)lameGlobalFlags);
15      }
16  
17      if ( 0 > lame_set_num_channels( lameGlobalFlags, getInChannel()) ) {