ccconverter: Don't output empty buffers

This commit is contained in:
Sebastian Dröge 2019-02-12 14:31:13 +02:00
parent 8171560053
commit 8006979109

View file

@ -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