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
@ -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…
x
Reference in New Issue
Block a user