pad: Append hooks instead of prepending to call them in the order they were added

https://bugzilla.gnome.org/show_bug.cgi?id=757197
This commit is contained in:
Sebastian Dröge 2015-10-27 18:05:05 +02:00
parent 85b93fa347
commit 2dfa548f36

View file

@ -1365,7 +1365,7 @@ gst_pad_add_probe (GstPad * pad, GstPadProbeType mask,
PROBE_COOKIE (hook) = (pad->priv->probe_cookie - 1);
/* add the probe */
g_hook_prepend (&pad->probes, hook);
g_hook_append (&pad->probes, hook);
pad->num_probes++;
/* incremenent cookie so that the new hook get's called */
pad->priv->probe_list_cookie++;