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:
Sebastian Dröge 2015-02-24 11:19:04 +02:00
parent f53bc227a8
commit e36c27cd46

View file

@ -1062,7 +1062,12 @@ d3d_prepare_render_window (GstD3DVideoSink * sink)
LOCK_SINK (sink);
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;
}