diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-02-12 14:31:13 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-02-12 14:38:40 +0200 |
commit | 8006979109ee450968da33723656b95a189a2255 (patch) | |
tree | 3a549c870b8cb7d01b0f899c4f29fa39b616106c | |
parent | 8171560053c0ce6d881ec5d7a791313055111aa7 (diff) |
ccconverter: Don't output empty buffers
-rw-r--r-- | ext/closedcaption/gstccconverter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/closedcaption/gstccconverter.c b/ext/closedcaption/gstccconverter.c index 3f37d69c5..868f181a1 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 |