summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2019-02-12 14:31:13 +0200
committerSebastian Dröge <sebastian@centricular.com>2019-02-12 14:38:40 +0200
commit8006979109ee450968da33723656b95a189a2255 (patch)
tree3a549c870b8cb7d01b0f899c4f29fa39b616106c
parent8171560053c0ce6d881ec5d7a791313055111aa7 (diff)
downloadgstreamer-plugins-bad-8006979109ee450968da33723656b95a189a2255.tar.gz
ccconverter: Don't output empty buffers
-rw-r--r--ext/closedcaption/gstccconverter.c3
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