From 8cabf9f434feffccd56d6d7a128276a993239794 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Mon, 29 Jun 2015 14:47:52 -0400 Subject: [PATCH] niimaqsrc: make sure we return GST_FLOW_ERROR on timeout --- sys/niimaq/gstniimaq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/niimaq/gstniimaq.c b/sys/niimaq/gstniimaq.c index 10cb879..8c58160 100644 --- a/sys/niimaq/gstniimaq.c +++ b/sys/niimaq/gstniimaq.c @@ -684,6 +684,9 @@ gst_niimaqsrc_create (GstPushSrc * psrc, GstBuffer ** buffer) error: { + /* make sure we return an error */ + if (ret == GST_FLOW_OK) + ret = GST_FLOW_ERROR; return ret; } }