diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-30 08:16:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-30 08:16:57 +0000 |
commit | a21eae5570ee23ff259ccee6adc402fa27578a83 (patch) | |
tree | 0507ed3791ad67e98a33cc87b0a485409d6b3e77 /media-video/pipewire/files/pipewire-0.3.63-rate-update.patch | |
parent | b7cf34e541f10778605d8740e2690d8459908ac5 (diff) |
gentoo auto-resync : 30:12:2022 - 08:16:57
Diffstat (limited to 'media-video/pipewire/files/pipewire-0.3.63-rate-update.patch')
-rw-r--r-- | media-video/pipewire/files/pipewire-0.3.63-rate-update.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-video/pipewire/files/pipewire-0.3.63-rate-update.patch b/media-video/pipewire/files/pipewire-0.3.63-rate-update.patch new file mode 100644 index 000000000000..91487def58e2 --- /dev/null +++ b/media-video/pipewire/files/pipewire-0.3.63-rate-update.patch @@ -0,0 +1,39 @@ +https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/860b8fc27ffbfd0a095e3fa4b0cd125d536283d3 +https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2915 +https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2891 + +From 860b8fc27ffbfd0a095e3fa4b0cd125d536283d3 Mon Sep 17 00:00:00 2001 +From: Wim Taymans <wtaymans@redhat.com> +Date: Thu, 29 Dec 2022 12:22:56 +0100 +Subject: [PATCH] modules: fix rate update + +Setting the rate with the PROP_rate would actually result in a rate +adjustment of 1.0f / rate, so do the same here. + +See #2891 +--- a/src/modules/module-pulse-tunnel.c ++++ b/src/modules/module-pulse-tunnel.c +@@ -270,7 +270,7 @@ static void update_rate(struct impl *impl, bool playback) + impl->current_latency, impl->target_latency); + + SPA_FLAG_SET(impl->rate_match->flags, SPA_IO_RATE_MATCH_FLAG_ACTIVE); +- impl->rate_match->rate = corr; ++ impl->rate_match->rate = 1.0f / corr; + } + + static void playback_stream_process(void *d) +--- a/src/modules/module-rtp-source.c ++++ b/src/modules/module-rtp-source.c +@@ -272,7 +272,7 @@ static void stream_process(void *data) + + if (sess->rate_match) { + SPA_FLAG_SET(sess->rate_match->flags, SPA_IO_RATE_MATCH_FLAG_ACTIVE); +- sess->rate_match->rate = corr; ++ sess->rate_match->rate = 1.0f / corr; + } + } + spa_ringbuffer_read_data(&sess->ring, +-- +GitLab + + |