[Flac-dev] Error initializing flac stream decoder.

Josh Coalson xflac at yahoo.com
Sun Aug 18 10:58:02 PDT 2002


--- Reza Naima <reza at reza.net> wrote:
> I've cross-compiled flac for the armv4l processor (rio receiver), and
> 
> i'm trying to start up a decode thread :
> 
> 	#include <FLAC/stream_decoder.h>
> 		....
>          FLAC__StreamDecoder *flac = NULL;
>          flac = FLAC__stream_decoder_new();
>          if (flac == NULL) {
>                  printf("[DECODE] Unable to initalize flac
> object\n");
>                  pthread_exit(NULL);
>          }
> 
> And, oddly enough, it's consistantly failling at the 
> FLAC__stream_decoder_new().  Is there any way to determine exactly
> why 
> it isn't able to start a new instance?
> 
> Though the flac executable wasn't able to compile, the libs did
> manage 
> to compile.  Here's the configure syntax I used (along with CC set to
> 
> the cross-compiler)
> 
>   $ ./configure --prefix=/home/reza/projects/rio/flac --host=armv4l

FLAC__stream_decoder_new() should only fail allocating memory.
In 1.0.3 the decoder instance is around 2 megs.  I have fixed
this in CVS (should be a few K now).  There's a thread on
flac-users with a workaround but it looks like it hasn't made
the archive yet... I'll forward it on to you.

Josh




__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com




More information about the Flac-dev mailing list