mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
shm: Fix event handling in unit test
This commit is contained in:
parent
99832846a3
commit
214c0d2e71
1 changed files with 11 additions and 0 deletions
|
@ -82,6 +82,11 @@ GST_START_TEST (test_shm_sysmem_alloc)
|
||||||
{
|
{
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
GstState state, pending;
|
GstState state, pending;
|
||||||
|
GstSegment segment;
|
||||||
|
|
||||||
|
gst_pad_push_event (srcpad, gst_event_new_stream_start ("test"));
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_BYTES);
|
||||||
|
gst_pad_push_event (srcpad, gst_event_new_segment (&segment));
|
||||||
|
|
||||||
buf = gst_buffer_new_allocate (NULL, 1000, NULL);
|
buf = gst_buffer_new_allocate (NULL, 1000, NULL);
|
||||||
|
|
||||||
|
@ -116,6 +121,12 @@ GST_START_TEST (test_shm_alloc)
|
||||||
GstAllocator *alloc;
|
GstAllocator *alloc;
|
||||||
GstAllocationParams params;
|
GstAllocationParams params;
|
||||||
guint size;
|
guint size;
|
||||||
|
GstSegment segment;
|
||||||
|
|
||||||
|
gst_pad_push_event (srcpad, gst_event_new_stream_start ("test"));
|
||||||
|
gst_pad_push_event (srcpad, gst_event_new_caps (caps));
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_BYTES);
|
||||||
|
gst_pad_push_event (srcpad, gst_event_new_segment (&segment));
|
||||||
|
|
||||||
query = gst_query_new_allocation (caps, FALSE);
|
query = gst_query_new_allocation (caps, FALSE);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
Loading…
Reference in a new issue