Commit 38dcd41b authored by Havard Graff's avatar Havard Graff Committed by Tim-Philipp Müller

basetransform: don't unref trans until the function is done using it

trans->priv->force_alloc = FALSE would crash if the ref held is the last

https://bugzilla.gnome.org/show_bug.cgi?id=648215
parent 60bbb9c2
......@@ -1963,7 +1963,6 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size,
sink_suggest = NULL;
}
gst_object_unref (trans);
if (sink_suggest)
gst_caps_unref (sink_suggest);
......@@ -1974,6 +1973,7 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size,
trans->priv->force_alloc = FALSE;
}
gst_object_unref (trans);
return res;
/* ERRORS */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment