0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

ao: use the right type for pending samples

This commit is contained in:
llyyr 2024-07-09 10:53:23 +05:30 committed by sfan5
parent 571f9b0f23
commit 2559f8874f

View File

@ -311,7 +311,7 @@ double ao_get_delay(struct ao *ao)
driver_delay = MPMAX(0, MP_TIME_NS_TO_S(end - now));
}
int pending = mp_async_queue_get_samples(p->queue);
int64_t pending = mp_async_queue_get_samples(p->queue);
if (p->pending)
pending += mp_aframe_get_size(p->pending);