From 2f742bb56ce631b16aa5e4f45d45c4861f409f76 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 29 Dec 2021 19:49:15 +0100 Subject: [PATCH] Revert "pulse-server: use partial data as missing/played for" This reverts commit 08b18b9da48b8eaba78b4f2a7a81ffe3116625b2. This was likely caused by a bug in mpv Fixes #1956 --- src/modules/module-protocol-pulse/pulse-server.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index b308aa30a..20c16938a 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -1258,6 +1258,8 @@ static void stream_process(void *data) pd.underrun = true; } if ((stream->attr.prebuf == 0 || do_flush) && !stream->corked) { + pd.missing = size; + pd.playing_for = size; if (avail > 0) { spa_ringbuffer_read_data(&stream->ring, stream->buffer, stream->attr.maxlength, @@ -1265,11 +1267,6 @@ static void stream_process(void *data) p, avail); index += avail; pd.read_inc = avail; - pd.missing = avail; - pd.playing_for = avail; - } else { - pd.missing = size; - pd.playing_for = size; } spa_ringbuffer_read_update(&stream->ring, index); }