mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Rebase against f6a5a3d03c1eb914444af96352ca54eec79d7e2c.
This commit is contained in:
parent
05efccaeaf
commit
8d07859cb1
@ -1,30 +0,0 @@
|
||||
From fa2952956340a84140071cd64b194223e2ea1c69 Mon Sep 17 00:00:00 2001
|
||||
From: Derek Lesho <dlesho@codeweavers.com>
|
||||
Date: Wed, 26 Aug 2020 10:23:58 -0500
|
||||
Subject: [PATCH] mf/sar: Compare against native media type in
|
||||
IsMediaTypeSupported.
|
||||
|
||||
TODO: add tests.
|
||||
---
|
||||
dlls/mf/sar.c | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dlls/mf/sar.c b/dlls/mf/sar.c
|
||||
index 6f1f1bd834e..547f8eb391c 100644
|
||||
--- a/dlls/mf/sar.c
|
||||
+++ b/dlls/mf/sar.c
|
||||
@@ -1479,8 +1479,9 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_IsMediaTypeSupported(IM
|
||||
TRACE("%p, %p, %p.\n", iface, in_type, out_type);
|
||||
|
||||
EnterCriticalSection(&renderer->cs);
|
||||
- hr = renderer->current_media_type && IMFMediaType_IsEqual(renderer->current_media_type, in_type, &flags) == S_OK ?
|
||||
- S_OK : MF_E_INVALIDMEDIATYPE;
|
||||
+ hr = IMFMediaType_IsEqual(renderer->current_media_type ? renderer->current_media_type : renderer->media_type, in_type, &flags) == S_OK ?
|
||||
+ S_OK : MF_E_INVALIDMEDIATYPE;
|
||||
+
|
||||
LeaveCriticalSection(&renderer->cs);
|
||||
|
||||
return hr;
|
||||
--
|
||||
2.28.0
|
||||
|
@ -51,7 +51,7 @@ usage()
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{
|
||||
echo "42bba70a024060fbd698aadec20fbb6f61ad9e16"
|
||||
echo "f6a5a3d03c1eb914444af96352ca54eec79d7e2c"
|
||||
}
|
||||
|
||||
# Show version information
|
||||
@ -2853,8 +2853,8 @@ fi
|
||||
# | * [#49692] mfplat: Improved support for multiple video formats.
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/mf/Makefile.in, dlls/mf/handler.c, dlls/mf/handler.h, dlls/mf/main.c, dlls/mf/sar.c, dlls/mf/session.c,
|
||||
# | dlls/mf/tests/mf.c, dlls/mf/topology.c, dlls/mfmediaengine/main.c, dlls/mfplat/mediatype.c, dlls/mfplat/tests/mfplat.c,
|
||||
# | * dlls/mf/Makefile.in, dlls/mf/handler.c, dlls/mf/handler.h, dlls/mf/main.c, dlls/mf/session.c, dlls/mf/tests/mf.c,
|
||||
# | dlls/mf/topology.c, dlls/mfmediaengine/main.c, dlls/mfplat/mediatype.c, dlls/mfplat/tests/mfplat.c,
|
||||
# | dlls/mfplat/tests/test.mp4, dlls/mfreadwrite/reader.c, dlls/mfreadwrite/tests/mfplat.c,
|
||||
# | dlls/mfreadwrite/tests/resource.rc, dlls/mfreadwrite/tests/test.mp4, dlls/winegstreamer/Makefile.in,
|
||||
# | dlls/winegstreamer/audioconvert.c, dlls/winegstreamer/colorconvert.c, dlls/winegstreamer/gst_cbs.c,
|
||||
@ -2914,7 +2914,6 @@ if test "$enable_mfplat_streaming_support" -eq 1; then
|
||||
patch_apply mfplat-streaming-support/0049-mf-Partially-implement-the-topology-loader.patch
|
||||
patch_apply mfplat-streaming-support/0050-mf-Miscelaneous-fixes-to-topology-resolution.patch
|
||||
patch_apply mfplat-streaming-support/0051-Rewrite-branch-resolver.patch
|
||||
patch_apply mfplat-streaming-support/0052-mf-sar-Compare-against-native-media-type-in-IsMediaT.patch
|
||||
patch_apply mfplat-streaming-support/0053-winegstreamer-Implement-audio-conversion-MFT.patch
|
||||
patch_apply mfplat-streaming-support/0054-HACK-Shutdown-media-sinks-on-session-shutdown.patch
|
||||
patch_apply mfplat-streaming-support/0055-HACK-Flush-decoder-when-changing-times.patch
|
||||
|
@ -1 +1 @@
|
||||
42bba70a024060fbd698aadec20fbb6f61ad9e16
|
||||
f6a5a3d03c1eb914444af96352ca54eec79d7e2c
|
||||
|
Loading…
Reference in New Issue
Block a user