mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
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:
parent
556e47580a
commit
783e1ea327
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue