There is a small chance that we might end up in the done step without
having any output available.
Furthermore, when going through not_ready, we need to ensure gst_buffer_unmap
has a properly initialized GstMapInfo.
CID #1139923
CID #1139924
CID #1139919
CID #1139920
static GstFlowReturn
gst_bz2dec_chain (GstPad * pad, GstObject * parent, GstBuffer * in)
{
- GstFlowReturn flow;
+ GstFlowReturn flow = GST_FLOW_OK;
GstBuffer *out;
GstBz2dec *b;
int r = BZ_OK;
- GstMapInfo map, omap;
+ GstMapInfo map = GST_MAP_INFO_INIT, omap;
b = GST_BZ2DEC (parent);
b = GST_BZ2ENC (parent);
switch (GST_EVENT_TYPE (e)) {
case GST_EVENT_EOS:{
- GstFlowReturn flow;
+ GstFlowReturn flow = GST_FLOW_OK;
int r = BZ_FINISH_OK;
do {
GstBz2enc *b;
guint n;
int bz2_ret;
- GstMapInfo map, omap;
+ GstMapInfo map = GST_MAP_INFO_INIT, omap;
b = GST_BZ2ENC (parent);