mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
d3dvideosink: post proper error message when window disappears
This commit is contained in:
parent
fd6a4f7372
commit
3f1eb8ee71
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue