Lines Matching full:protected_
159 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 */
253 decoder->protected_ = calloc(1, sizeof(FLAC__StreamDecoderProtected));
254 if(decoder->protected_ == 0) {
261 free(decoder->protected_);
269 free(decoder->protected_);
278 free(decoder->protected_);
299 decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
311 FLAC__ASSERT(0 != decoder->protected_);
326 free(decoder->protected_);
352 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
368 if(is_ogg && !FLAC__ogg_decoder_aspect_init(&decoder->protected_->ogg_decoder_aspect))
369 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE;
418 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
436 decoder->private_->do_md5_checking = decoder->protected_->md5_checking;
517 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
518 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED;
521 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS;
591 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
592 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED;
595 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS;
636 FLAC__ASSERT(0 != decoder->protected_);
638 if(decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
672 FLAC__ogg_decoder_aspect_finish(&decoder->protected_->ogg_decoder_aspect);
689 decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
698 FLAC__ASSERT(0 != decoder->protected_);
699 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
703 FLAC__ogg_decoder_aspect_set_serial_number(&decoder->protected_->ogg_decoder_aspect, value);
714 FLAC__ASSERT(0 != decoder->protected_);
715 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
717 decoder->protected_->md5_checking = value;
725 FLAC__ASSERT(0 != decoder->protected_);
730 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
742 FLAC__ASSERT(0 != decoder->protected_);
744 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
754 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
771 FLAC__ASSERT(0 != decoder->protected_);
772 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
784 FLAC__ASSERT(0 != decoder->protected_);
789 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
801 FLAC__ASSERT(0 != decoder->protected_);
803 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
813 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
829 FLAC__ASSERT(0 != decoder->protected_);
830 if(decoder->protected_->state != FLAC__STREAM_DECODER_UNINITIALIZED)
840 FLAC__ASSERT(0 != decoder->protected_);
841 return decoder->protected_->state;
846 return FLAC__StreamDecoderStateString[decoder->protected_->state];
852 FLAC__ASSERT(0 != decoder->protected_);
853 return decoder->protected_->md5_checking;
859 FLAC__ASSERT(0 != decoder->protected_);
866 FLAC__ASSERT(0 != decoder->protected_);
867 return decoder->protected_->channels;
873 FLAC__ASSERT(0 != decoder->protected_);
874 return decoder->protected_->channel_assignment;
880 FLAC__ASSERT(0 != decoder->protected_);
881 return decoder->protected_->bits_per_sample;
887 FLAC__ASSERT(0 != decoder->protected_);
888 return decoder->protected_->sample_rate;
894 FLAC__ASSERT(0 != decoder->protected_);
895 return decoder->protected_->blocksize;
923 FLAC__ASSERT(0 != decoder->protected_);
925 if(!decoder->private_->internal_reset_hack && decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
933 FLAC__ogg_decoder_aspect_flush(&decoder->protected_->ogg_decoder_aspect);
937 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
940 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
949 FLAC__ASSERT(0 != decoder->protected_);
959 FLAC__ogg_decoder_aspect_reset(&decoder->protected_->ogg_decoder_aspect);
976 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_METADATA;
984 decoder->private_->do_md5_checking = decoder->protected_->md5_checking;
1009 FLAC__ASSERT(0 != decoder->protected_);
1012 switch(decoder->protected_->state) {
1045 FLAC__ASSERT(0 != decoder->protected_);
1048 switch(decoder->protected_->state) {
1073 FLAC__ASSERT(0 != decoder->protected_);
1076 switch(decoder->protected_->state) {
1107 FLAC__ASSERT(0 != decoder->protected_);
1110 switch(decoder->protected_->state) {
1141 decoder->protected_->state != FLAC__STREAM_DECODER_SEARCH_FOR_METADATA &&
1142 decoder->protected_->state != FLAC__STREAM_DECODER_READ_METADATA &&
1143 decoder->protected_->state != FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC &&
1144 decoder->protected_->state != FLAC__STREAM_DECODER_READ_FRAME &&
1145 decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM
1173 decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_METADATA ||
1174 decoder->protected_->state == FLAC__STREAM_DECODER_READ_METADATA
1238 decoder->protected_->md5_checking = false;
1241 FLAC__ogg_decoder_aspect_set_defaults(&decoder->protected_->ogg_decoder_aspect);
1296 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1303 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1378 decoder->protected_->state = FLAC__STREAM_DECODER_READ_FRAME;
1389 decoder->protected_->state = FLAC__STREAM_DECODER_READ_METADATA;
1446 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;/*@@@@@@ maybe wrong error? need to resync?*/
1472 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1500 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1556 if(!ok) /* anything that unsets "ok" should also make sure decoder->protected_->state is updated */
1565 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
1657 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1705 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1729 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1756 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1815 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1848 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1885 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1898 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1927 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1969 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2002 decoder->protected_->state = FLAC__STREAM_DECODER_READ_FRAME;
2033 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means we didn't sync on a valid header */
2069 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2074 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) */
2141 decoder->protected_->channels = decoder->private_->frame.header.channels;
2142 decoder->protected_->channel_assignment = decoder->private_->frame.header.channel_assignment;
2143 decoder->protected_->bits_per_sample = decoder->private_->frame.header.bits_per_sample;
2144 decoder->protected_->sample_rate = decoder->private_->frame.header.sample_rate;
2145 decoder->protected_->blocksize = decoder->private_->frame.header.blocksize;
2153 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2158 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2212 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2297 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2373 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2386 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2433 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2464 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2500 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2513 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2519 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2524 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2530 if(decoder->protected_->state == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC) /* means bad sync or got corruption */
2598 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2606 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2654 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2664 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2687 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2695 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2762 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
2801 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC;
2819 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2834 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2846 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2860 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
2872 decoder->protected_->state = FLAC__STREAM_DECODER_ABORTED;
2890 switch(FLAC__ogg_decoder_aspect_read_callback_wrapper(&decoder->protected_->ogg_decoder_aspect, buffer, bytes, read_callback_proxy_, decoder, decoder->private_->client_data)) {
3112 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3129 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3144 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED) {
3145 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3152 if(decoder->protected_->state != FLAC__SEEKABLE_STREAM_DECODER_SEEKING && decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM)
3164 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3176 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3185 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3193 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3258 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3272 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED) {
3273 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3289 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3314 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3323 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;