gstpad: run probes for FLUSH events sent with gst_pad_send_event
authorAlessandro Decina <alessandro.d@gmail.com>
Wed, 24 Apr 2013 06:40:32 +0000 (08:40 +0200)
committerAlessandro Decina <alessandro.d@gmail.com>
Thu, 25 Apr 2013 04:43:29 +0000 (06:43 +0200)
Move probe handling in gst_pad_send_event_unchecked so that probes are run for
FLUSH events too.

gst/gstpad.c

index 01f439a..83825f3 100644 (file)
@@ -4860,16 +4860,16 @@ gst_pad_send_event_unchecked (GstPad * pad, GstEvent * event,
         default:
           break;
       }
-
-      /* now do the probe */
-      PROBE_PUSH (pad,
-          type | GST_PAD_PROBE_TYPE_PUSH |
-          GST_PAD_PROBE_TYPE_BLOCK, event, probe_stopped);
-
-      PROBE_PUSH (pad, type | GST_PAD_PROBE_TYPE_PUSH, event, probe_stopped);
       break;
   }
 
+  /* now do the probe */
+  PROBE_PUSH (pad,
+      type | GST_PAD_PROBE_TYPE_PUSH |
+      GST_PAD_PROBE_TYPE_BLOCK, event, probe_stopped);
+
+  PROBE_PUSH (pad, type | GST_PAD_PROBE_TYPE_PUSH, event, probe_stopped);
+
   if (G_UNLIKELY ((eventfunc = GST_PAD_EVENTFUNC (pad)) == NULL))
     goto no_function;