mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
d3dvideosink: release and recreate the device in prepare_window
This commit is contained in:
parent
046d3ab98f
commit
bd68bd61da
1 changed files with 2 additions and 3 deletions
|
@ -1375,9 +1375,8 @@ gst_d3dvideosink_prepare_window (GstD3DVideoSink * sink)
|
|||
* and create (and use) our own window, if we didn't create
|
||||
* one before */
|
||||
if (sink->window_handle && sink->is_new_window) {
|
||||
return;
|
||||
}
|
||||
if (sink->window_handle) {
|
||||
gst_d3dvideosink_release_d3d_device (sink);
|
||||
} else if (sink->window_handle) {
|
||||
gst_d3dvideosink_set_window_for_renderer (sink);
|
||||
} else {
|
||||
gst_d3dvideosink_create_default_window (sink);
|
||||
|
|
Loading…
Reference in a new issue