Commit 7c6c0544 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

evr: Trace normalized rectangle arguments.

parent e1e7c160
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment