[PATCH] mfplay: Trace normalized rectangle arguments.

Nikolay Sivov nsivov at codeweavers.com
Tue Oct 26 11:59:15 CDT 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mfplay/player.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dlls/mfplay/player.c b/dlls/mfplay/player.c
index 6f8d4942a0b..12ea653b97d 100644
--- a/dlls/mfplay/player.c
+++ b/dlls/mfplay/player.c
@@ -53,6 +53,12 @@ static void platform_shutdown(void)
         MFShutdown();
 }
 
+static inline const char *debugstr_normalized_rect(const MFVideoNormalizedRect *rect)
+{
+    if (!rect) return "(null)";
+    return wine_dbg_sprintf("(%.8e,%.8e)-(%.8e,%.8e)", rect->left, rect->top, rect->right, rect->bottom);
+}
+
 struct media_item
 {
     IMFPMediaItem IMFPMediaItem_iface;
@@ -1437,7 +1443,7 @@ static HRESULT WINAPI media_player_SetVideoSourceRect(IMFPMediaPlayer *iface,
     RECT dst_rect;
     HRESULT hr;
 
-    TRACE("%p, %p.\n", iface, rect);
+    TRACE("%p, %s.\n", iface, debugstr_normalized_rect(rect));
 
     if (!GetClientRect(player->output_window, &dst_rect))
         hr = HRESULT_FROM_WIN32(GetLastError());
-- 
2.33.0




More information about the wine-devel mailing list