pad: store the received result from _foreach
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 9 Mar 2012 10:52:29 +0000 (11:52 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 9 Mar 2012 10:52:29 +0000 (11:52 +0100)
If the foreach function changes the received state of the sticky event, make
sure we remember that.

gst/gstpad.c

index 26e5175..98ec68c 100644 (file)
@@ -493,6 +493,9 @@ restart:
       goto restart;
     }
 
+    /* store the received state */
+    ev->received = ev_ret.received;
+
     /* if the event changed, we need to do something */
     if (G_UNLIKELY (ev->event != ev_ret.event)) {
       if (G_UNLIKELY (ev_ret.event == NULL)) {