pad: fix invalid unref after IDLE probe on non-OK flow return
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Sun, 2 Aug 2015 15:38:14 +0000 (17:38 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 4 Aug 2015 10:10:45 +0000 (11:10 +0100)
commit794a08d7e9e4d1fc483c1fac49369f5aef964ba9
treeb185d1aa29c70283674a5e0f2772f12531fe70e6
parentcde3524f5241f03401ae5cea24db1137aa9d4763
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.

https://bugzilla.gnome.org//show_bug.cgi?id=753151
gst/gstpad.c