harness: assert on result of gst_pad_push_event()
authorEdward Hervey <edward@centricular.com>
Sat, 15 Dec 2018 10:07:21 +0000 (11:07 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 15 Dec 2018 10:07:21 +0000 (11:07 +0100)
That assertion was accidentally removed in the refactoring done in
60de1f26c78feb0cde6d3f82cf86cf35daa71cc0

libs/gst/check/gstharness.c

index c0f4467..e7a78e6 100644 (file)
@@ -1179,6 +1179,7 @@ gst_harness_set_src_caps (GstHarness * h, GstCaps * caps)
 
   gst_segment_init (&segment, GST_FORMAT_TIME);
   handled = gst_pad_push_event (h->srcpad, gst_event_new_segment (&segment));
+  g_assert (handled);
 }
 
 /**