mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
check/pipelines/simple_launch_lines.c: use more check API and less GLib API
Original commit message from CVS: * check/pipelines/simple_launch_lines.c: (setup_pipeline), (GST_START_TEST): use more check API and less GLib API
This commit is contained in:
parent
a725096078
commit
5d87c67d6b
3 changed files with 16 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-11-28 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* check/pipelines/simple_launch_lines.c: (setup_pipeline),
|
||||||
|
(GST_START_TEST):
|
||||||
|
use more check API and less GLib API
|
||||||
|
|
||||||
2005-11-28 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-11-28 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* Makefile.am:
|
* Makefile.am:
|
||||||
|
|
|
@ -29,7 +29,7 @@ setup_pipeline (gchar * pipe_descr)
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
|
|
||||||
pipeline = gst_parse_launch (pipe_descr, NULL);
|
pipeline = gst_parse_launch (pipe_descr, NULL);
|
||||||
g_return_val_if_fail (GST_IS_PIPELINE (pipeline), NULL);
|
fail_unless (GST_IS_PIPELINE (pipeline));
|
||||||
return pipeline;
|
return pipeline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ GST_START_TEST (test_stop_from_app)
|
||||||
fakesink = gst_element_factory_make ("fakesink", NULL);
|
fakesink = gst_element_factory_make ("fakesink", NULL);
|
||||||
pipeline = gst_element_factory_make ("pipeline", NULL);
|
pipeline = gst_element_factory_make ("pipeline", NULL);
|
||||||
|
|
||||||
g_return_if_fail (fakesrc && fakesink && pipeline);
|
fail_unless (fakesrc && fakesink && pipeline);
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
||||||
gst_element_link (fakesrc, fakesink);
|
gst_element_link (fakesrc, fakesink);
|
||||||
|
@ -179,7 +179,9 @@ GST_START_TEST (test_stop_from_app)
|
||||||
} else {
|
} else {
|
||||||
rmessage = GST_MESSAGE_UNKNOWN;
|
rmessage = GST_MESSAGE_UNKNOWN;
|
||||||
}
|
}
|
||||||
g_return_if_fail (rmessage == GST_MESSAGE_APPLICATION);
|
fail_unless (rmessage == GST_MESSAGE_APPLICATION,
|
||||||
|
"polled message is not APPLICATION but %s",
|
||||||
|
gst_message_type_get_name (rmessage));
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
|
|
@ -29,7 +29,7 @@ setup_pipeline (gchar * pipe_descr)
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
|
|
||||||
pipeline = gst_parse_launch (pipe_descr, NULL);
|
pipeline = gst_parse_launch (pipe_descr, NULL);
|
||||||
g_return_val_if_fail (GST_IS_PIPELINE (pipeline), NULL);
|
fail_unless (GST_IS_PIPELINE (pipeline));
|
||||||
return pipeline;
|
return pipeline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ GST_START_TEST (test_stop_from_app)
|
||||||
fakesink = gst_element_factory_make ("fakesink", NULL);
|
fakesink = gst_element_factory_make ("fakesink", NULL);
|
||||||
pipeline = gst_element_factory_make ("pipeline", NULL);
|
pipeline = gst_element_factory_make ("pipeline", NULL);
|
||||||
|
|
||||||
g_return_if_fail (fakesrc && fakesink && pipeline);
|
fail_unless (fakesrc && fakesink && pipeline);
|
||||||
|
|
||||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
||||||
gst_element_link (fakesrc, fakesink);
|
gst_element_link (fakesrc, fakesink);
|
||||||
|
@ -179,7 +179,9 @@ GST_START_TEST (test_stop_from_app)
|
||||||
} else {
|
} else {
|
||||||
rmessage = GST_MESSAGE_UNKNOWN;
|
rmessage = GST_MESSAGE_UNKNOWN;
|
||||||
}
|
}
|
||||||
g_return_if_fail (rmessage == GST_MESSAGE_APPLICATION);
|
fail_unless (rmessage == GST_MESSAGE_APPLICATION,
|
||||||
|
"polled message is not APPLICATION but %s",
|
||||||
|
gst_message_type_get_name (rmessage));
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
|
Loading…
Reference in a new issue