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>
This commit is contained in:
Seungha Yang 2023-05-24 22:12:51 +09:00 committed by Tim-Philipp Müller
parent cf3fdabb22
commit d93f0a51c2

View file

@ -1440,8 +1440,6 @@ gst_d3d11_video_sink_show_frame (GstVideoSink * sink, GstBuffer * buf)
ret = GST_FLOW_ERROR;
}
gst_clear_buffer (&self->prepared_buffer);
return ret;
}