pad: Append hooks instead of prepending to call them in the order they were added
authorSebastian Dröge <sebastian@centricular.com>
Tue, 27 Oct 2015 16:05:05 +0000 (18:05 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 28 Oct 2015 11:02:04 +0000 (13:02 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=757197

gst/gstpad.c

index 57451a3..8921213 100644 (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++;