Nikolay Sivov : mfreadwrite: Wake also on new streams.
Alexandre Julliard
julliard at winehq.org
Mon Apr 22 16:30:38 CDT 2019
Module: wine
Branch: master
Commit: 279f6dbd0cb1e4f2c48340ce6fd3e43e6fa681eb
URL: https://source.winehq.org/git/wine.git/?a=commit;h=279f6dbd0cb1e4f2c48340ce6fd3e43e6fa681eb
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Apr 22 10:52:29 2019 +0300
mfreadwrite: Wake also on new streams.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mfreadwrite/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/mfreadwrite/main.c b/dlls/mfreadwrite/main.c
index e27fe82..490f238 100644
--- a/dlls/mfreadwrite/main.c
+++ b/dlls/mfreadwrite/main.c
@@ -253,6 +253,9 @@ static HRESULT source_reader_new_stream_handler(struct source_reader *reader, IM
{
WARN("Failed to subscribe to stream events, hr %#x.\n", hr);
}
+
+ /* Wake so any waiting ReadSample() calls have a chance to make requests. */
+ WakeAllConditionVariable(&reader->streams[i].sample_event);
}
break;
}
More information about the wine-cvs
mailing list