d3dvideosink: Don't initialize the render window swap chain while the device is lost...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 24 Feb 2015 09:19:04 +0000 (11:19 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 24 Feb 2015 09:19:48 +0000 (11:19 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=744615

sys/d3dvideosink/d3dhelpers.c

index b131666..b9e9115 100644 (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;
   }