mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
capsfilter-renegotiation: Use assertions from libcheck for more information on failures
This commit is contained in:
parent
39662d0393
commit
480e661618
1 changed files with 5 additions and 5 deletions
|
@ -104,13 +104,13 @@ run_capsfilter_renegotiation (const gchar * launch_line)
|
||||||
current_caps = NULL;
|
current_caps = NULL;
|
||||||
|
|
||||||
pipeline = gst_parse_launch (launch_line, NULL);
|
pipeline = gst_parse_launch (launch_line, NULL);
|
||||||
g_assert (pipeline);
|
fail_unless (pipeline != NULL);
|
||||||
|
|
||||||
capsfilter = gst_bin_get_by_name (GST_BIN (pipeline), "cf");
|
capsfilter = gst_bin_get_by_name (GST_BIN (pipeline), "cf");
|
||||||
g_assert (capsfilter);
|
fail_unless (capsfilter != NULL);
|
||||||
|
|
||||||
sink = gst_bin_get_by_name (GST_BIN (pipeline), "sink");
|
sink = gst_bin_get_by_name (GST_BIN (pipeline), "sink");
|
||||||
g_assert (sink);
|
fail_unless (sink != NULL);
|
||||||
|
|
||||||
pad = gst_element_get_static_pad (sink, "sink");
|
pad = gst_element_get_static_pad (sink, "sink");
|
||||||
gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BUFFER, buffer_probe, capsfilter,
|
gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BUFFER, buffer_probe, capsfilter,
|
||||||
|
@ -125,8 +125,8 @@ run_capsfilter_renegotiation (const gchar * launch_line)
|
||||||
msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE,
|
msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE,
|
||||||
GST_MESSAGE_EOS | GST_MESSAGE_ERROR);
|
GST_MESSAGE_EOS | GST_MESSAGE_ERROR);
|
||||||
|
|
||||||
g_assert (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_EOS);
|
fail_unless_equals_int (GST_MESSAGE_TYPE (msg), GST_MESSAGE_EOS);
|
||||||
g_assert (caps_change == 4);
|
fail_unless_equals_int (caps_change, 4);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue