mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
validate:tests: s/discount_buffer/discont_buffer/
This commit is contained in:
parent
26ddc02cef
commit
9843562616
1 changed files with 8 additions and 8 deletions
|
@ -83,7 +83,7 @@ _check_reports_refcount (GstPad * pad, gint refcount)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
gst_discount_buffer_new (void)
|
gst_discont_buffer_new (void)
|
||||||
{
|
{
|
||||||
GstBuffer *buffer = gst_buffer_new ();
|
GstBuffer *buffer = gst_buffer_new ();
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ GST_START_TEST (buffer_before_segment)
|
||||||
{
|
{
|
||||||
_gst_check_expecting_log = TRUE;
|
_gst_check_expecting_log = TRUE;
|
||||||
fail_unless_equals_int (gst_pad_push (srcpad,
|
fail_unless_equals_int (gst_pad_push (srcpad,
|
||||||
gst_discount_buffer_new ()), GST_FLOW_OK);
|
gst_discont_buffer_new ()), GST_FLOW_OK);
|
||||||
|
|
||||||
reports = gst_validate_runner_get_reports (runner);
|
reports = gst_validate_runner_get_reports (runner);
|
||||||
assert_equals_int (g_list_length (reports), 1);
|
assert_equals_int (g_list_length (reports), 1);
|
||||||
|
@ -139,7 +139,7 @@ GST_START_TEST (buffer_before_segment)
|
||||||
{
|
{
|
||||||
_gst_check_expecting_log = FALSE;
|
_gst_check_expecting_log = FALSE;
|
||||||
gst_check_setup_events (srcpad, sink, NULL, GST_FORMAT_TIME);
|
gst_check_setup_events (srcpad, sink, NULL, GST_FORMAT_TIME);
|
||||||
fail_unless_equals_int (gst_pad_push (srcpad, gst_discount_buffer_new ()),
|
fail_unless_equals_int (gst_pad_push (srcpad, gst_discont_buffer_new ()),
|
||||||
GST_FLOW_OK);
|
GST_FLOW_OK);
|
||||||
reports = gst_validate_runner_get_reports (runner);
|
reports = gst_validate_runner_get_reports (runner);
|
||||||
assert_equals_int (g_list_length (reports), 1);
|
assert_equals_int (g_list_length (reports), 1);
|
||||||
|
@ -209,7 +209,7 @@ GST_START_TEST (buffer_outside_segment)
|
||||||
|
|
||||||
/* Pushing a buffer that is outside the segment */
|
/* Pushing a buffer that is outside the segment */
|
||||||
{
|
{
|
||||||
buffer = gst_discount_buffer_new ();
|
buffer = gst_discont_buffer_new ();
|
||||||
GST_BUFFER_PTS (buffer) = 10 * GST_SECOND;
|
GST_BUFFER_PTS (buffer) = 10 * GST_SECOND;
|
||||||
GST_BUFFER_DURATION (buffer) = GST_SECOND;
|
GST_BUFFER_DURATION (buffer) = GST_SECOND;
|
||||||
fail_unless (gst_pad_push (srcpad, buffer));
|
fail_unless (gst_pad_push (srcpad, buffer));
|
||||||
|
@ -224,7 +224,7 @@ GST_START_TEST (buffer_outside_segment)
|
||||||
|
|
||||||
/* Pushing a buffer inside the segment */
|
/* Pushing a buffer inside the segment */
|
||||||
{
|
{
|
||||||
fail_unless (gst_pad_push (srcpad, gst_discount_buffer_new ()));
|
fail_unless (gst_pad_push (srcpad, gst_discont_buffer_new ()));
|
||||||
reports = gst_validate_runner_get_reports (runner);
|
reports = gst_validate_runner_get_reports (runner);
|
||||||
assert_equals_int (g_list_length (reports), 1);
|
assert_equals_int (g_list_length (reports), 1);
|
||||||
g_list_free_full (reports, (GDestroyNotify) gst_validate_report_unref);
|
g_list_free_full (reports, (GDestroyNotify) gst_validate_report_unref);
|
||||||
|
@ -322,7 +322,7 @@ _test_flow_aggregation (GstFlowReturn flow, GstFlowReturn flow1,
|
||||||
pmonitor2->last_flow_return = flow2;
|
pmonitor2->last_flow_return = flow2;
|
||||||
FAKE_DEMUXER (demuxer)->return_value = demux_flow;
|
FAKE_DEMUXER (demuxer)->return_value = demux_flow;
|
||||||
|
|
||||||
fail_unless_equals_int (gst_pad_push (srcpad, gst_discount_buffer_new ()),
|
fail_unless_equals_int (gst_pad_push (srcpad, gst_discont_buffer_new ()),
|
||||||
demux_flow);
|
demux_flow);
|
||||||
|
|
||||||
reports = gst_validate_runner_get_reports (runner);
|
reports = gst_validate_runner_get_reports (runner);
|
||||||
|
@ -924,7 +924,7 @@ GST_START_TEST (buffer_timestamp_out_of_received_range)
|
||||||
fail_unless (gst_pad_push_event (srcpad, gst_event_new_segment (&segment)));
|
fail_unless (gst_pad_push_event (srcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
{
|
{
|
||||||
buffer = gst_discount_buffer_new ();
|
buffer = gst_discont_buffer_new ();
|
||||||
GST_BUFFER_PTS (buffer) = 0 * GST_SECOND;
|
GST_BUFFER_PTS (buffer) = 0 * GST_SECOND;
|
||||||
GST_BUFFER_DURATION (buffer) = 0.1 * GST_SECOND;
|
GST_BUFFER_DURATION (buffer) = 0.1 * GST_SECOND;
|
||||||
fail_unless (gst_pad_push (srcpad, buffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (srcpad, buffer) == GST_FLOW_OK);
|
||||||
|
@ -933,7 +933,7 @@ GST_START_TEST (buffer_timestamp_out_of_received_range)
|
||||||
decoder_srcpad = gst_element_get_static_pad (decoder, "src");
|
decoder_srcpad = gst_element_get_static_pad (decoder, "src");
|
||||||
|
|
||||||
{
|
{
|
||||||
buffer = gst_discount_buffer_new ();
|
buffer = gst_discont_buffer_new ();
|
||||||
GST_BUFFER_PTS (buffer) = 0.9 * GST_SECOND;
|
GST_BUFFER_PTS (buffer) = 0.9 * GST_SECOND;
|
||||||
GST_BUFFER_DURATION (buffer) = 0.1 * GST_SECOND;
|
GST_BUFFER_DURATION (buffer) = 0.1 * GST_SECOND;
|
||||||
fail_unless (gst_pad_push (decoder_srcpad, buffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (decoder_srcpad, buffer) == GST_FLOW_OK);
|
||||||
|
|
Loading…
Reference in a new issue