d3d12videosink: Fix mouse event handling

GstD3D12Window.priv.input_info is referenced by mouse event handler
in order to calculate corresponding original position
if scene is rotated/flipped by the videosink.
Fixing regression introduced by recent d3d12videosink refactoring

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7177>
This commit is contained in:
Seungha Yang 2024-07-16 04:21:09 +09:00 committed by GStreamer Marge Bot
parent 556e47580a
commit 783e1ea327

View file

@ -405,8 +405,12 @@ gst_d3d12_window_prepare (GstD3D12Window * window, GstD3D12Device * device,
}
}
gst_video_info_set_format (&priv->display_info, format,
display_width, display_height);
{
std::lock_guard < std::recursive_mutex > lk (priv->lock);
priv->input_info = in_info;
gst_video_info_set_format (&priv->display_info, format,
display_width, display_height);
}
if (!gst_d3d12_device_is_equal (window->device, device)) {
gst_clear_object (&window->device);