summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-02-24 11:19:04 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-02-26 14:38:26 +0200
commit7052ebc18300cc17f083dc4f9bbc84bb252b0a39 (patch)
treef6a696deb9f870f5078863ca7366a46918617350
parentbcfac6c0a1fb229d75b591d9d6d7012fc39ae738 (diff)
downloadgstreamer-plugins-bad-7052ebc18300cc17f083dc4f9bbc84bb252b0a39.tar.gz
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
-rw-r--r--sys/d3dvideosink/d3dhelpers.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/d3dvideosink/d3dhelpers.c b/sys/d3dvideosink/d3dhelpers.c
index b131666b6..b9e911526 100644
--- a/sys/d3dvideosink/d3dhelpers.c
+++ b/sys/d3dvideosink/d3dhelpers.c
@@ -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;
}