mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
From 0a2ea36a38fccd41fa3387be71fea39462e4102c Mon Sep 17 00:00:00 2001
|
|
From: Maarten Lankhorst <maarten.lankhorst@canonical.com>
|
|
Date: Tue, 24 Jun 2014 08:48:48 +0200
|
|
Subject: [PATCH 30/43] winepulse: fix unneeded free in write..
|
|
|
|
---
|
|
dlls/winepulse.drv/mmdevdrv.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c
|
|
index a4575d5..3ca68fd 100644
|
|
--- a/dlls/winepulse.drv/mmdevdrv.c
|
|
+++ b/dlls/winepulse.drv/mmdevdrv.c
|
|
@@ -1886,6 +1886,10 @@ static HRESULT WINAPI AudioRenderClient_GetBuffer(IAudioRenderClient *iface,
|
|
return hr;
|
|
}
|
|
|
|
+static void pulse_free_noop(void *buf)
|
|
+{
|
|
+}
|
|
+
|
|
static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
|
|
IAudioRenderClient *iface, UINT32 written_frames, DWORD flags)
|
|
{
|
|
@@ -1921,7 +1925,7 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
|
|
if (This->locked_ptr)
|
|
pa_stream_write(This->stream, This->locked_ptr, written_bytes, NULL, 0, PA_SEEK_RELATIVE);
|
|
else
|
|
- pa_stream_write(This->stream, This->tmp_buffer, written_bytes, NULL, 0, PA_SEEK_RELATIVE);
|
|
+ pa_stream_write(This->stream, This->tmp_buffer, written_bytes, pulse_free_noop, 0, PA_SEEK_RELATIVE);
|
|
This->pad += written_bytes;
|
|
This->locked_ptr = NULL;
|
|
TRACE("Released %u, pad %zu\n", written_frames, This->pad / pa_frame_size(&This->ss));
|
|
--
|
|
2.0.0
|
|
|