From 1b06822ce356c443a801608bca871a991cd97833 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 12 Nov 2014 13:55:23 +0000 Subject: [PATCH] Revert "pad: fail dropped queries" This was pushed by mistake along with an unrelated patch. This reverts commit c7103ce4b8c1da7dcfbcf2ec83a42a376fb896e1. --- gst/gstpad.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 4c063fe..e835e29 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -3643,8 +3643,11 @@ probe_stopped: GST_PAD_STREAM_UNLOCK (pad); /* if a probe dropped, we don't sent it further but assume that the probe - * did not answer the query and return FALSE */ - res = FALSE; + * answered the query and return TRUE */ + if (ret == GST_FLOW_CUSTOM_SUCCESS) + res = TRUE; + else + res = FALSE; return res; } @@ -3757,8 +3760,11 @@ probe_stopped: GST_OBJECT_UNLOCK (pad); /* if a probe dropped, we don't sent it further but assume that the probe - * did not answer the query and return FALSE */ - res = FALSE; + * answered the query and return TRUE */ + if (ret == GST_FLOW_CUSTOM_SUCCESS) + res = TRUE; + else + res = FALSE; return res; } -- 2.7.4