Lines Matching refs:protected_
167 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 */
263 decoder->protected_ = calloc(1, sizeof(FLAC__StreamDecoderProtected));
264 if(decoder->protected_ == 0) {
271 free(decoder->protected_);
279 free(decoder->protected_);
288 free(decoder->protected_);
309 decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
321 FLAC__ASSERT(0 != decoder->protected_);
336 free(decoder->protected_);
362 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
380 if(is_ogg && !FLAC__ogg_decoder_aspect_init(&decoder->protected_->ogg_decoder_aspect))
381 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE;
430 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
448 decoder->private_->do_md5_checking = decoder->protected_->md5_checking;
529 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
530 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED;
533 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS;
603 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
604 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED;
607 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS;
648 FLAC__ASSERT(0 != decoder->protected_);
650 if(decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
685 FLAC__ogg_decoder_aspect_finish(&decoder->protected_->ogg_decoder_aspect);
702 decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
711 FLAC__ASSERT(0 != decoder->protected_);
712 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
716 FLAC__ogg_decoder_aspect_set_serial_number(&decoder->protected_->ogg_decoder_aspect, value);
727 FLAC__ASSERT(0 != decoder->protected_);
728 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
730 decoder->protected_->md5_checking = value;
738 FLAC__ASSERT(0 != decoder->protected_);
743 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
755 FLAC__ASSERT(0 != decoder->protected_);
757 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
767 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
784 FLAC__ASSERT(0 != decoder->protected_);
785 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
797 FLAC__ASSERT(0 != decoder->protected_);
802 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
814 FLAC__ASSERT(0 != decoder->protected_);
816 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
826 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
842 FLAC__ASSERT(0 != decoder->protected_);
843 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
853 FLAC__ASSERT(0 != decoder->protected_);
854 return decoder->protected_->state;
859 return FLAC__StreamDecoderStateString[decoder->protected_->state];
865 FLAC__ASSERT(0 != decoder->protected_);
866 return decoder->protected_->md5_checking;
872 FLAC__ASSERT(0 != decoder->protected_);
879 FLAC__ASSERT(0 != decoder->protected_);
880 return decoder->protected_->channels;
886 FLAC__ASSERT(0 != decoder->protected_);
887 return decoder->protected_->channel_assignment;
893 FLAC__ASSERT(0 != decoder->protected_);
894 return decoder->protected_->bits_per_sample;
900 FLAC__ASSERT(0 != decoder->protected_);
901 return decoder->protected_->sample_rate;
907 FLAC__ASSERT(0 != decoder->protected_);
908 return decoder->protected_->blocksize;
937 FLAC__ASSERT(0 != decoder->protected_);
939 if(!decoder->private_->internal_reset_hack && decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
947 FLAC__ogg_decoder_aspect_flush(&decoder->protected_->ogg_decoder_aspect);
951 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
954 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
963 FLAC__ASSERT(0 != decoder->protected_);
973 FLAC__ogg_decoder_aspect_reset(&decoder->protected_->ogg_decoder_aspect);
990 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_METADATA;
998 decoder->private_->do_md5_checking = decoder->protected_->md5_checking;
1023 FLAC__ASSERT(0 != decoder->protected_);
1026 switch(decoder->protected_->state) {
1059 FLAC__ASSERT(0 != decoder->protected_);
1062 switch(decoder->protected_->state) {
1087 FLAC__ASSERT(0 != decoder->protected_);
1090 switch(decoder->protected_->state) {
1121 FLAC__ASSERT(0 != decoder->protected_);
1124 switch(decoder->protected_->state) {
1155 decoder->protected_->state != FLAC__STREAM_DECODER_SEARCH_FOR_METADATA &&
1156 decoder->protected_->state != FLAC__STREAM_DECODER_READ_METADATA &&
1157 decoder->protected_->state != FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC &&
1158 decoder->protected_->state != FLAC__STREAM_DECODER_READ_FRAME &&
1159 decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM
1187 decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_METADATA ||
1188 decoder->protected_->state == FLAC__STREAM_DECODER_READ_METADATA
1254 decoder->protected_->md5_checking = false;
1257 FLAC__ogg_decoder_aspect_set_defaults(&decoder->protected_->ogg_decoder_aspect);
1312 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1319 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1394 decoder->protected_->state = FLAC__STREAM_DECODER_READ_FRAME;
1405 decoder->protected_->state = FLAC__STREAM_DECODER_READ_METADATA;
1459 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;/*@@@@@@ maybe wrong error? need to resync?*/
1485 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1513 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1569 if(!ok) /* anything that unsets "ok" should also make sure decoder->protected_->state is updated */
1578 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
1670 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1718 decoder->protected_
1742 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1770 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1828 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1861 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1898 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1911 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1940 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1982 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2015 decoder->protected_->state = FLAC__STREAM_DECODER_READ_FRAME;
2046 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means we didn't sync on a valid header */
2082 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2087 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) */
2154 decoder->protected_->channels = decoder->private_->frame.header.channels;
2155 decoder->protected_->channel_assignment = decoder->private_->frame.header.channel_assignment;
2156 decoder->protected_->bits_per_sample = decoder->private_->frame.header.bits_per_sample;
2157 decoder->protected_->sample_rate = decoder->private_->frame.header.sample_rate;
2158 decoder->protected_->blocksize = decoder->private_->frame.header.blocksize;
2169 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2223 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2308 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2384 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2397 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2444 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2475 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2509 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2522 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2528 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2533 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2539 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2607 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2615 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2663 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2673 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2696 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2704 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2771 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
2810 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2828 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2843 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2855 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2869 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2881 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2899 switch(FLAC__ogg_decoder_aspect_read_callback_wrapper(&decoder->protected_->ogg_decoder_aspect, buffer, bytes, read_callback_proxy_, decoder, decoder->private_->client_data)) {
3121 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3138 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3153 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3160 if(decoder->protected_->state != FLAC__SEEKABLE_STREAM_DECODER_SEEKING && decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM)
3172 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3184 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3193 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3201 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3266 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3280 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3296 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3321 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3330 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;