static char *audio_fill_current_and_next_asynchronous_buffer(struct mp4_read_struct *reader, unsigned int trunk_index) { char *result = fill_and_wait_asynchronous_buffer(reader, reader->audio_current_asynchronous_buffer, reader->audio_handle, reader->file.audio_track_ids[reader->current_audio_track], trunk_index); if (result != 0) { return(result); } result = audio_fill_next_asynchronous_buffer(reader); if (result != 0) { return(result); } return(0); }
static char *fill_current_and_next_asynchronous_buffer(struct pmp_read_struct *reader, unsigned int first_packet, unsigned int first_packet_position, unsigned int seek) { char *result = fill_and_wait_asynchronous_buffer(reader, reader->current_asynchronous_buffer, first_packet, first_packet_position, seek); if (result != 0) { return(result); } result = fill_next_asynchronous_buffer(reader, seek); if (result != 0) { return(result); } return(0); }