tests: basesrc: unref gst_bus_timed_pop_filtered return
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 17 Apr 2019 18:46:58 +0000 (20:46 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Wed, 17 Apr 2019 21:03:56 +0000 (23:03 +0200)
tests/check/libs/basesrc.c

index afd5da8..f964cba 100644 (file)
@@ -1013,7 +1013,8 @@ GST_START_TEST (basesrc_time_automatic_eos)
 
   bus = gst_pipeline_get_bus (GST_PIPELINE (pipe));
 
-  gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, GST_MESSAGE_EOS);
+  gst_message_unref (gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE,
+          GST_MESSAGE_EOS));
 
   gst_element_set_state (pipe, GST_STATE_NULL);