niimaqsrc: make sure we return GST_FLOW_ERROR on timeout

This commit is contained in:
Joshua M. Doe 2015-06-29 14:47:52 -04:00
parent 80176d2308
commit 8cabf9f434

View File

@ -684,6 +684,9 @@ gst_niimaqsrc_create (GstPushSrc * psrc, GstBuffer ** buffer)
error: error:
{ {
/* make sure we return an error */
if (ret == GST_FLOW_OK)
ret = GST_FLOW_ERROR;
return ret; return ret;
} }
} }