d3d11videosink: Move potentially time-consuming operations to ::prepare()
authorSeungha Yang <seungha@centricular.com>
Thu, 15 Dec 2022 17:52:08 +0000 (02:52 +0900)
committerSeungha Yang <seungha@centricular.com>
Fri, 16 Dec 2022 17:11:07 +0000 (02:11 +0900)
commit068a5c1053ae05b3c7747243948447e764d25aa6
treefd98716a61963409ee827e4f0b99e0f54d3d8cd8
parent04451b108a388eae5e6be0abbc2309f7cfa3d3ae
d3d11videosink: Move potentially time-consuming operations to ::prepare()

Move following tasks to ::prepare() from ::show_frame()
* CPU -> GPU upload
* GstD3D11Window object setup, including input caps change handling

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3574>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window.h
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp