Eric Pouech : mfplay: Use correct integral type.

Alexandre Julliard julliard at winehq.org
Wed Feb 2 16:38:03 CST 2022


Module: wine
Branch: master
Commit: 6c2d0bb9ae6c33e09a3cfecb561665dc83c1305e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6c2d0bb9ae6c33e09a3cfecb561665dc83c1305e

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Wed Feb  2 15:04:40 2022 +0300

mfplay: Use correct integral type.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplay/player.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c
index 5abee9d7de8..d7ec7085def 100644
--- a/dlls/mfplay/player.c
+++ b/dlls/mfplay/player.c
@@ -657,16 +657,17 @@ static HRESULT WINAPI media_item_GetPresentationAttribute(IMFPMediaItem *iface,
 static HRESULT WINAPI media_item_GetCharacteristics(IMFPMediaItem *iface, MFP_MEDIAITEM_CHARACTERISTICS *flags)
 {
     struct media_item *item = impl_from_IMFPMediaItem(iface);
+    DWORD value = 0;
     HRESULT hr;
 
     TRACE("%p, %p.\n", iface, flags);
 
     *flags = 0;
 
-    if (SUCCEEDED(hr = IMFMediaSource_GetCharacteristics(item->source, flags)))
+    if (SUCCEEDED(hr = IMFMediaSource_GetCharacteristics(item->source, &value)))
     {
-        *flags &= (MFP_MEDIAITEM_IS_LIVE | MFP_MEDIAITEM_CAN_SEEK |
-                MFP_MEDIAITEM_CAN_PAUSE | MFP_MEDIAITEM_HAS_SLOW_SEEK);
+        *flags = value & (MFP_MEDIAITEM_IS_LIVE | MFP_MEDIAITEM_CAN_SEEK |
+                          MFP_MEDIAITEM_CAN_PAUSE | MFP_MEDIAITEM_HAS_SLOW_SEEK);
     }
 
     return hr;




More information about the wine-cvs mailing list