Nikolay Sivov : evr: Trace normalized rectangle arguments.
Alexandre Julliard
julliard at winehq.org
Mon Oct 25 16:30:07 CDT 2021
Module: wine
Branch: master
Commit: 7c6c054427547f00b8c8d5418bcae1dafc4b6d89
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7c6c054427547f00b8c8d5418bcae1dafc4b6d89
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 25 13:05:33 2021 +0300
evr: Trace normalized rectangle arguments.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/evr/evr_private.h | 6 ++++++
dlls/evr/mixer.c | 3 ++-
dlls/evr/presenter.c | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/evr/evr_private.h b/dlls/evr/evr_private.h
index 7ae83140579..ef38b0f70cf 100644
--- a/dlls/evr/evr_private.h
+++ b/dlls/evr/evr_private.h
@@ -45,6 +45,12 @@ static inline const char *debugstr_time(LONGLONG time)
return wine_dbg_sprintf("%s", rev);
}
+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);
+}
+
HRESULT evr_filter_create(IUnknown *outer_unk, void **ppv) DECLSPEC_HIDDEN;
HRESULT evr_mixer_create(IUnknown *outer_unk, void **ppv) DECLSPEC_HIDDEN;
HRESULT evr_presenter_create(IUnknown *outer_unk, void **ppv) DECLSPEC_HIDDEN;
diff --git a/dlls/evr/mixer.c b/dlls/evr/mixer.c
index 66c3960511a..f821dc7e6d9 100644
--- a/dlls/evr/mixer.c
+++ b/dlls/evr/mixer.c
@@ -25,6 +25,7 @@
#include "mferror.h"
#include "evr_classes.h"
+#include "evr_private.h"
#include "initguid.h"
#include "evr9.h"
@@ -1551,7 +1552,7 @@ static HRESULT WINAPI video_mixer_control_SetStreamOutputRect(IMFVideoMixerContr
struct input_stream *stream;
HRESULT hr;
- TRACE("%p, %u, %p.\n", iface, id, rect);
+ TRACE("%p, %u, %s.\n", iface, id, debugstr_normalized_rect(rect));
if (!rect)
return E_POINTER;
diff --git a/dlls/evr/presenter.c b/dlls/evr/presenter.c
index fa116c18ccc..bf0f89df0eb 100644
--- a/dlls/evr/presenter.c
+++ b/dlls/evr/presenter.c
@@ -1280,7 +1280,7 @@ static HRESULT WINAPI video_presenter_control_SetVideoPosition(IMFVideoDisplayCo
struct video_presenter *presenter = impl_from_IMFVideoDisplayControl(iface);
HRESULT hr = S_OK;
- TRACE("%p, %p, %s.\n", iface, src_rect, wine_dbgstr_rect(dst_rect));
+ TRACE("%p, %s, %s.\n", iface, debugstr_normalized_rect(src_rect), wine_dbgstr_rect(dst_rect));
if (!src_rect && !dst_rect)
return E_POINTER;
More information about the wine-cvs
mailing list