d3d11videosink: Fix error on pause and play
authorSeungha Yang <seungha@centricular.com>
Wed, 24 May 2023 13:12:51 +0000 (22:12 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 25 May 2023 16:03:26 +0000 (17:03 +0100)
commitd93f0a51c224c435705c03b31fa50fb3b78d961e
tree6e5d1a82f081a5c6538d99cb23bc15b5e8d96fed
parentcf3fdabb22db4a9e9c3aa1f0436162edc72cc34c
d3d11videosink: Fix error on pause and play

The show_frame() can be called without prepare() call on paused to
playing state change. Thus the prepared buffer should not be cleared
on show_frame()

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