mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
d3dvideosink: Don't initialize the render window swap chain while the device is lost and we're waiting for reset
https://bugzilla.gnome.org/show_bug.cgi?id=744615
This commit is contained in:
parent
f53bc227a8
commit
e36c27cd46
1 changed files with 6 additions and 1 deletions
|
@ -1062,7 +1062,12 @@ d3d_prepare_render_window (GstD3DVideoSink * sink)
|
||||||
LOCK_SINK (sink);
|
LOCK_SINK (sink);
|
||||||
|
|
||||||
if (sink->d3d.window_handle == NULL) {
|
if (sink->d3d.window_handle == NULL) {
|
||||||
GST_DEBUG_OBJECT (sink, "No window handle has been set..");
|
GST_DEBUG_OBJECT (sink, "No window handle has been set.");
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sink->d3d.device_lost) {
|
||||||
|
GST_DEBUG_OBJECT (sink, "Device is lost, waiting for reset.");
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue