summaryrefslogtreecommitdiff
path: root/sys/d3dvideosink
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-24 11:19:48 +0200
commite36c27cd46d0720ebde82fce5865d95914b4a2fc (patch)
tree25773150588a81d625dbf965a7d774d0dfab4768 /sys/d3dvideosink
parentf53bc227a80cd72cb2b46f8bd6e63047e1d172d9 (diff)
downloadgstreamer-plugins-bad-e36c27cd46d0720ebde82fce5865d95914b4a2fc.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
Diffstat (limited to 'sys/d3dvideosink')
-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;
}