mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
tests: fix simple-launch-lines compilation
Don't use removed API.
This commit is contained in:
parent
705d17c8a8
commit
d50ecdd9d5
1 changed files with 0 additions and 22 deletions
|
@ -243,24 +243,6 @@ got_handoff (GstElement * sink, GstBuffer * buf, GstPad * pad, gpointer unused)
|
|||
gst_structure_new_empty ("foo")));
|
||||
}
|
||||
|
||||
static void
|
||||
assert_live_count (GType type, gint live)
|
||||
{
|
||||
GstAllocTrace *trace;
|
||||
const gchar *name;
|
||||
|
||||
if (gst_alloc_trace_available ()) {
|
||||
name = g_type_name (type);
|
||||
fail_if (name == NULL);
|
||||
trace = gst_alloc_trace_get (name);
|
||||
if (trace) {
|
||||
g_return_if_fail (trace->live == live);
|
||||
}
|
||||
} else {
|
||||
g_print ("\nSkipping live count tests; recompile with traces to enable\n");
|
||||
}
|
||||
}
|
||||
|
||||
GST_START_TEST (test_stop_from_app)
|
||||
{
|
||||
GstElement *fakesrc, *fakesink, *pipeline;
|
||||
|
@ -269,8 +251,6 @@ GST_START_TEST (test_stop_from_app)
|
|||
GstMessageType rmessage;
|
||||
GstMessage *message;
|
||||
|
||||
assert_live_count (GST_TYPE_BUFFER, 0);
|
||||
|
||||
fakesrc = gst_element_factory_make ("fakesrc", NULL);
|
||||
fakesink = gst_element_factory_make ("fakesink", NULL);
|
||||
pipeline = gst_element_factory_make ("pipeline", NULL);
|
||||
|
@ -316,8 +296,6 @@ GST_START_TEST (test_stop_from_app)
|
|||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||
gst_object_unref (pipeline);
|
||||
gst_object_unref (bus);
|
||||
|
||||
assert_live_count (GST_TYPE_BUFFER, 0);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue