Lines Matching refs:protected_
193 FLAC__bool do_md5_checking; /* initially gets protected_->md5_checking but is turned off after a seek or if the metadata has a zero MD5 */
291 decoder->protected_ = (FLAC__StreamDecoderProtected*)calloc(1, sizeof(FLAC__StreamDecoderProtected));
292 if(decoder->protected_ == 0) {
299 free(decoder->protected_);
307 free(decoder->protected_);
316 free(decoder->protected_);
337 decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
347 FLAC__ASSERT(0 != decoder->protected_);
362 free(decoder->protected_);
388 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
406 if(is_ogg && !FLAC__ogg_decoder_aspect_init(&decoder->protected_->ogg_decoder_aspect))
407 return decoder->protected_->state = FLAC__STREAM_DECODER_OGG_ERROR;
454 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
472 decoder->private_->do_md5_checking = decoder->protected_->md5_checking;
553 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
554 return decoder->protected_->state = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED;
557 return decoder->protected_->state = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS;
627 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
628 return decoder->protected_->state = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED;
631 return decoder->protected_->state = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS;
672 FLAC__ASSERT(0 != decoder->protected_);
674 if(decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
711 FLAC__ogg_decoder_aspect_finish(&decoder->protected_->ogg_decoder_aspect);
728 decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
737 FLAC__ASSERT(0 != decoder->protected_);
738 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
742 FLAC__ogg_decoder_aspect_set_serial_number(&decoder->protected_->ogg_decoder_aspect, value);
753 FLAC__ASSERT(0 != decoder->protected_);
754 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
756 decoder->protected_->md5_checking = value;
764 FLAC__ASSERT(0 != decoder->protected_);
769 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
781 FLAC__ASSERT(0 != decoder->protected_);
783 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
793 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
810 FLAC__ASSERT(0 != decoder->protected_);
811 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
823 FLAC__ASSERT(0 != decoder->protected_);
828 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
840 FLAC__ASSERT(0 != decoder->protected_);
842 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
852 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
868 FLAC__ASSERT(0 != decoder->protected_);
869 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
879 FLAC__ASSERT(0 != decoder->protected_);
880 return decoder->protected_->state;
885 return FLAC__StreamDecoderStateString[decoder->protected_->state];
891 FLAC__ASSERT(0 != decoder->protected_);
892 return decoder->protected_->md5_checking;
898 FLAC__ASSERT(0 != decoder->protected_);
905 FLAC__ASSERT(0 != decoder->protected_);
906 return decoder->protected_->channels;
912 FLAC__ASSERT(0 != decoder->protected_);
913 return decoder->protected_->channel_assignment;
919 FLAC__ASSERT(0 != decoder->protected_);
920 return decoder->protected_->bits_per_sample;
926 FLAC__ASSERT(0 != decoder->protected_);
927 return decoder->protected_->sample_rate;
933 FLAC__ASSERT(0 != decoder->protected_);
934 return decoder->protected_->blocksize;
963 FLAC__ASSERT(0 != decoder->protected_);
970 FLAC__ogg_decoder_aspect_flush(&decoder->protected_->ogg_decoder_aspect);
974 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
977 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
986 FLAC__ASSERT(0 != decoder->protected_);
996 FLAC__ogg_decoder_aspect_reset(&decoder->protected_->ogg_decoder_aspect);
1013 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_METADATA;
1021 decoder->private_->do_md5_checking = decoder->protected_->md5_checking;
1048 FLAC__ASSERT(0 != decoder->protected_);
1051 switch(decoder->protected_->state) {
1084 FLAC__ASSERT(0 != decoder->protected_);
1087 switch(decoder->protected_->state) {
1112 FLAC__ASSERT(0 != decoder->protected_);
1115 switch(decoder->protected_->state) {
1146 FLAC__ASSERT(0 != decoder->protected_);
1149 switch(decoder->protected_->state) {
1180 decoder->protected_->state != FLAC__STREAM_DECODER_SEARCH_FOR_METADATA &&
1181 decoder->protected_->state != FLAC__STREAM_DECODER_READ_METADATA &&
1182 decoder->protected_->state != FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC &&
1183 decoder->protected_->state != FLAC__STREAM_DECODER_READ_FRAME &&
1184 decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM
1212 decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_METADATA ||
1213 decoder->protected_->state == FLAC__STREAM_DECODER_READ_METADATA
1279 decoder->protected_->md5_checking = false;
1282 FLAC__ogg_decoder_aspect_set_defaults(&decoder->protected_->ogg_decoder_aspect);
1337 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1347 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1418 decoder->protected_->state = FLAC__STREAM_DECODER_READ_FRAME;
1429 decoder->protected_->state = FLAC__STREAM_DECODER_READ_METADATA;
1482 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;/*@@@@@@ maybe wrong error? need to resync?*/
1507 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1535 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1597 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
1689 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1728 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1746 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1755 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1801 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1834 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1871 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1884 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1913 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1955 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
1988 decoder->protected_->state = FLAC__STREAM_DECODER_READ_FRAME;
2019 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means we didn't sync on a valid header */
2055 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2060 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption (i.e. "zero bits" were not all zeroes) */
2127 decoder->protected_->channels = decoder->private_->frame.header.channels;
2128 decoder->protected_->channel_assignment = decoder->private_->frame.header.channel_assignment;
2129 decoder->protected_->bits_per_sample = decoder->private_->frame.header.bits_per_sample;
2130 decoder->protected_->sample_rate = decoder->private_->frame.header.sample_rate;
2131 decoder->protected_->blocksize = decoder->private_->frame.header.blocksize;
2142 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2196 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2281 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2357 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2370 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2417 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2448 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2482 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2495 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2501 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2506 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2512 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2581 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2629 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2660 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2734 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2741 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2747 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
2786 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2804 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2819 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2831 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2845 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2857 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2875 switch(FLAC__ogg_decoder_aspect_read_callback_wrapper(&decoder->protected_->ogg_decoder_aspect, buffer, bytes, read_callback_proxy_, decoder, decoder->private_->client_data)) {
3099 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3121 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3136 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3143 if(decoder->protected_->state != FLAC__SEEKABLE_STREAM_DECODER_SEEKING && decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM)
3155 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3167 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3176 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3184 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3254 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3268 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3284 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3309 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3318 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;