search for: flac__stream_decoder_uninitialized

Displaying 6 results from an estimated 6 matches for "flac__stream_decoder_uninitialized".

2004 Sep 10
2
about libFLAC
...YNC: ... That's a suggestion, but any solution that permit us to continue a stopped decoding will do the job. Maybe a new stopped state. Another thing: Is there a reason for FLAC__stream_decoder_set_client_data() and FLAC__stream_encoder_set_client_data() returning false if the state isn't FLAC__STREAM_DECODER_UNINITIALIZED or FLAC__STREAM_DECODER_UNINITIALIZED? I do not understand why is that, because it has nothing to do with the encoding process (it's client data!). Regards, Daniel
2004 Sep 10
0
about libFLAC
...nd picking up again would not work because of the internal buffering in the stream decoder but I will look into it. > Another thing: Is there a reason for > FLAC__stream_decoder_set_client_data() > and FLAC__stream_encoder_set_client_data() returning false if the > state > isn't FLAC__STREAM_DECODER_UNINITIALIZED or > FLAC__STREAM_DECODER_UNINITIALIZED? I do not understand why is that, > because > it has nothing to do with the encoding process (it's client data!). umm... trying to remember... the answer is probably that there was a reason originally, but there isn't one now. I'll inves...
2011 Aug 11
1
Memory leak
During my current dealings with the FLAC library I think I discovered a memory leak. After an encoder stream has finish()'ed, I believe you are supposed to use it again by calling init(). However, when verification is enabled, the init() routine will create a new stream decoder (to verify the data) without deleting (or reusing) the existing one. A small program demonstrating this is pasted
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was either solved off-list or abandoned. (http://lists.xiph.org/pipermail/flac/2005-August/000468.html) The problem is with using the C++ encoder classes, particularly the FLAC::Encoder::File:set_metadata function. JC said that the developers version of how to add a simple metadata block looked right, but it did not work for
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...frame starts */ @@ -322,7 +322,9 @@ FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void) decoder->private_->file = 0; set_defaults_(decoder); - +#if defined(HAVE_OPENSSL) + EVP_MD_CTX_init(&decoder->private_->md5context); +#endif decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED; return decoder; @@ -346,7 +348,9 @@ FLAC_API void FLAC__stream_decoder_delete(FLAC__StreamDecoder *decoder) for(i = 0; i < FLAC__MAX_CHANNELS; i++) FLAC__format_entropy_coding_method_partitioned_rice_contents_clear(&decoder->private_->partitioned_rice_contents[i]); - +#if d...
2004 Sep 10
0
http streaming in the xmms plugin
...! }; ! ! /*********** HTTP decoder functions */ ! ! static gchar *url_; + static FLAC__bool http_decoder_set_md5_checking (void *decoder, FLAC__bool value) + { + (void) value; + // operation unsupported + return FLAC__stream_decoder_get_state ((const FLAC__StreamDecoder *) decoder) == + FLAC__STREAM_DECODER_UNINITIALIZED; + } + + static FLAC__bool http_decoder_set_url (void *decoder, const char* url) + { + (void) decoder; + url_ = g_strdup (url); return true; } ! static FLAC__StreamDecoderReadStatus http_decoder_read_callback (const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void...