mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
d3dvideosink: don't recreate the d3d device if it already exists
This commit is contained in:
parent
96b9582914
commit
830e8b6ec6
1 changed files with 3 additions and 1 deletions
|
@ -1374,8 +1374,10 @@ gst_d3dvideosink_prepare_window (GstD3DVideoSink * sink)
|
|||
/* If the app supplied one, use it. Otherwise, go ahead
|
||||
* 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) {
|
||||
if (!sink->is_new_window)
|
||||
gst_d3dvideosink_set_window_for_renderer (sink);
|
||||
} else {
|
||||
gst_d3dvideosink_create_default_window (sink);
|
||||
|
|
Loading…
Reference in a new issue