From 355499790b6664637838da24771a23b8b81adbd1 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 17 Jun 2005 11:58:48 +0000 Subject: [PATCH] gst/base/gstbasesink.c (gst_basesink_chain): Remove bogus assert; it's always possible that the pad gets deactivated ... Original commit message from CVS: 2005-06-17 Andy Wingo * gst/base/gstbasesink.c (gst_basesink_chain): Remove bogus assert; it's always possible that the pad gets deactivated in between the checks in gstpad.c and the implementation. Rely on finish_preroll() to return a FLUSHING or similar instead of on the assert. --- gst/base/gstbasesink.c | 3 --- libs/gst/base/gstbasesink.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/gst/base/gstbasesink.c b/gst/base/gstbasesink.c index 7360896596..c54ee854b5 100644 --- a/gst/base/gstbasesink.c +++ b/gst/base/gstbasesink.c @@ -739,9 +739,6 @@ gst_basesink_chain (GstPad * pad, GstBuffer * buf) { GstFlowReturn result; - g_assert (GST_BASESINK (GST_OBJECT_PARENT (pad))->pad_mode == - GST_ACTIVATE_PUSH); - result = gst_basesink_chain_unlocked (pad, buf); return result; diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 7360896596..c54ee854b5 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -739,9 +739,6 @@ gst_basesink_chain (GstPad * pad, GstBuffer * buf) { GstFlowReturn result; - g_assert (GST_BASESINK (GST_OBJECT_PARENT (pad))->pad_mode == - GST_ACTIVATE_PUSH); - result = gst_basesink_chain_unlocked (pad, buf); return result;