timeline-pipeline: Clean the blocked pad

We do need to cleanup the pad now, otherwise the probe will get remove a
second time in pad_removed_cb causing an assertion.
This commit is contained in:
Nicolas Dufresne 2012-09-06 16:58:21 -04:00
parent 4302188011
commit b3e1bd5dbb

View file

@ -621,8 +621,9 @@ no_more_pads_cb (GstElement * timeline, GESTimelinePipeline * self)
if (chain->blocked_pad) {
GST_DEBUG_OBJECT (chain->blocked_pad, "unblocking pad");
gst_pad_remove_probe (chain->blocked_pad, chain->probe_id);
gst_object_unref (chain->blocked_pad);
chain->blocked_pad = NULL;
chain->probe_id = 0;
/* do we need to unref and NULL the pad here? */
}
}
}