recognise two types of flush -- one with from and until information, the other with just until information. A flush with "with" information is not followed by a new set anchor, whereas a flush without the " with" information is alwasy followed by a new setanchor.

This commit is contained in:
Mike Brady
2021-05-28 19:16:37 +01:00
parent 9b5bbbf361
commit e258cca33a
3 changed files with 81 additions and 24 deletions
+5 -2
View File
@@ -295,8 +295,11 @@ typedef struct {
ssize_t ap2_audio_buffer_size;
int ap2_flush_requested;
uint32_t ap2_flush_rtp_timestamp;
uint32_t ap2_flush_sequence_number;
int ap2_flush_from_valid;
uint32_t ap2_flush_from_rtp_timestamp;
uint32_t ap2_flush_from_sequence_number;
uint32_t ap2_flush_until_rtp_timestamp;
uint32_t ap2_flush_until_sequence_number;
int ap2_rate; // protect with flush mutex, 0 means don't play, 1 means play
int ap2_play_enabled; // protect with flush mutex