From 1a54b40c787a4e91a7f94eb04e83c559c4487c33 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 26 Aug 2013 18:36:06 -0300 Subject: [PATCH] pad-monitor: fix aggregate flow return check for error situations Flow flushing must be returned upstream to indicate an error situation downstream --- validate/gst/validate/gst-validate-pad-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index ec614d68dc..f542f691d7 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -773,6 +773,8 @@ _combine_flows (GstFlowReturn ret1, GstFlowReturn ret2) return ret1; if (ret2 <= GST_FLOW_NOT_NEGOTIATED) return ret2; + if (ret1 == GST_FLOW_FLUSHING || ret2 == GST_FLOW_FLUSHING) + return GST_FLOW_FLUSHING; if (ret1 == GST_FLOW_OK || ret2 == GST_FLOW_OK) return GST_FLOW_OK; return ret2;