From 8006979109ee450968da33723656b95a189a2255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Feb 2019 14:31:13 +0200 Subject: [PATCH] ccconverter: Don't output empty buffers --- ext/closedcaption/gstccconverter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/closedcaption/gstccconverter.c b/ext/closedcaption/gstccconverter.c index 3f37d69c5c..868f181a18 100644 --- a/ext/closedcaption/gstccconverter.c +++ b/ext/closedcaption/gstccconverter.c @@ -1292,7 +1292,8 @@ gst_cc_converter_transform (GstBaseTransform * base, GstBuffer * inbuf, GST_DEBUG_OBJECT (self, "Converted to %" GST_PTR_FORMAT, outbuf); - return GST_FLOW_OK; + return gst_buffer_get_size (outbuf) > + 0 ? GST_FLOW_OK : GST_BASE_TRANSFORM_FLOW_DROPPED; } static gboolean