d3dvideosink: post proper error message when window disappears
This commit is contained in:
parent
fd6a4f7372
commit
3f1eb8ee71
@ -1800,7 +1800,9 @@ d3d_render_buffer (GstD3DVideoSink * sink, GstBuffer * buf)
|
|||||||
|
|
||||||
if (!sink->d3d.window_handle) {
|
if (!sink->d3d.window_handle) {
|
||||||
if (sink->stream_stop_on_close) {
|
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;
|
ret = GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
goto end;
|
goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user