d3d11window: Misc code cleanup
authorSeungha Yang <seungha@centricular.com>
Mon, 9 Aug 2021 17:48:01 +0000 (02:48 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 10 Aug 2021 16:20:37 +0000 (16:20 +0000)
commit1f6fd7550c819a78f3717828ed718ca9e7e2dc54
treee2e125d5b8abc633289ad168457581f297cc3bd4
parenta1048ce11000af9da9fca3536d658267c772da20
d3d11window: Misc code cleanup

* Remove unnecessary upcasting. We are now dealing with C++ class objects
  and don't need explicit C-style casting in C++ world
* Use helper macro IID_PPV_ARGS() everywhere. It will make code
  a little short.
* Use ComPtr smart pointer instead of calling manual IUnknown::Release()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2461>
sys/d3d11/gstd3d11window.cpp
sys/d3d11/gstd3d11window_corewindow.cpp
sys/d3d11/gstd3d11window_dummy.cpp
sys/d3d11/gstd3d11window_swapchainpanel.cpp
sys/d3d11/gstd3d11window_win32.cpp