mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
basetransform: Properly port unit test to actually use caps and check results
This commit is contained in:
parent
8e1f70473b
commit
f38496067d
2 changed files with 148 additions and 619 deletions
|
@ -183,6 +183,8 @@ gst_test_trans_new (void)
|
|||
gst_element_set_state (res->trans, GST_STATE_PAUSED);
|
||||
gst_pad_set_active (res->srcpad, TRUE);
|
||||
|
||||
gst_pad_push_event (res->srcpad, gst_event_new_stream_start ("test"));
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -233,3 +235,19 @@ gst_test_trans_pop (TestTransData * data)
|
|||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_test_trans_setcaps (TestTransData * data, GstCaps * caps)
|
||||
{
|
||||
return gst_pad_set_caps (data->srcpad, caps);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_test_trans_push_segment (TestTransData * data)
|
||||
{
|
||||
GstSegment segment;
|
||||
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
|
||||
return gst_pad_push_event (data->srcpad, gst_event_new_segment (&segment));
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue