This commit is contained in:
philippe44
2019-08-21 00:21:11 -07:00
parent 217dd8e5f0
commit 8ddc2a0dc5
3 changed files with 11 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ static void buffer_put_packet(rtp_t *ctx, seq_t seqno, unsigned rtptime, bool fi
pthread_mutex_lock(&ctx->ab_mutex);
if (!ctx->playing) {
if (!ctx->playing) {
if ((ctx->flush_seqno == -1 || seq_order(ctx->flush_seqno, seqno)) &&
(ctx->synchro.status & RTP_SYNC) && (ctx->synchro.status & NTP_SYNC)) {
ctx->ab_write = seqno-1;
@@ -641,7 +641,7 @@ static void *rtp_thread_func(void *arg) {
ctx, ctx->latency, rtp_now_latency, rtp_now, remote, ctx->synchro.time, ctx->synchro.rtp, gettime_ms());
if (!count--) {
rtp_request_timing(ctx);
rtp_request_timing(ctx);
count = 3;
}