Commit 794a08d7 authored by George Kiagiadakis's avatar George Kiagiadakis Committed by Tim-Philipp Müller

pad: fix invalid unref after IDLE probe on non-OK flow return

In case there is an IDLE probe fired from gst_pad_push_data and it
doesn't return GST_FLOW_OK, the code jumps to the probe_stopped
label which tries to unref the data object. However, at this point
the data object belongs downstream and must not be touched.
By setting data = NULL, the code skips this unref.
parent cde3524f
......@@ -4280,6 +4280,7 @@ gst_pad_push_data (GstPad * pad, GstPadProbeType type, void *data)
ret = gst_pad_chain_data_unchecked (peer, type, data);
data = NULL;
gst_object_unref (peer);
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