summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-04-08 17:45:46 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-04-08 17:52:12 +0100
commit3f1eb8ee71bce1a98cfe15ee2db01e753a0794b3 (patch)
tree66acc6261f87cb75ee75bd0dcca20ebfcfe25bee
parentfd6a4f7372bb66b3ef89ef4bfd3dadeced2dcea9 (diff)
downloadgstreamer-plugins-bad-3f1eb8ee71bce1a98cfe15ee2db01e753a0794b3.tar.gz
d3dvideosink: post proper error message when window disappears
-rw-r--r--sys/d3dvideosink/d3dhelpers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/d3dvideosink/d3dhelpers.c b/sys/d3dvideosink/d3dhelpers.c
index 1310e53cb..c7ffc8c51 100644
--- a/sys/d3dvideosink/d3dhelpers.c
+++ b/sys/d3dvideosink/d3dhelpers.c
@@ -1800,7 +1800,9 @@ d3d_render_buffer (GstD3DVideoSink * sink, GstBuffer * buf)
if (!sink->d3d.window_handle) {
if (sink->stream_stop_on_close) {
- GST_LOG_OBJECT (sink, "Stopping stream. No render window");
+ /* Handle window deletion by posting an error on the bus */
+ GST_ELEMENT_ERROR (sink, RESOURCE, NOT_FOUND,
+ ("Output window was closed"), (NULL));
ret = GST_FLOW_ERROR;
}
goto end;