summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c416488)
raw | patch | inline | side by side (parent: c416488)
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Wed, 27 Jun 2012 11:23:53 +0000 (11:23 +0000) | ||
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | |
Wed, 27 Jun 2012 11:23:53 +0000 (11:23 +0000) |
src/gstducatividdec.c | patch | blob | history |
diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index bebba5a17654d79904fde223214dc89a07b4f56d..198b69ecb31382915f9fc9fdf106db8fe38ed46f 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
if (G_UNLIKELY (!self->engine)) {
GST_ERROR_OBJECT (self, "no engine");
+ gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}
if (ret != GST_FLOW_OK) {
GST_WARNING_OBJECT (self, "alloc_buffer failed %s",
gst_flow_get_name (ret));
+ gst_buffer_unref (buf);
return ret;
}
if (G_UNLIKELY (!self->codec)) {
if (!codec_create (self)) {
GST_ERROR_OBJECT (self, "could not create codec");
+ gst_buffer_unref (buf);
+ gst_buffer_unref (outbuf);
return GST_FLOW_ERROR;
}
}
codec_prepare_outbuf (self, &outbuf, self->first_out_buffer);
if (!self->inArgs->inputID) {
GST_ERROR_OBJECT (self, "could not prepare output buffer");
+ gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}