shm: Fix event handling in unit test
This commit is contained in:
parent
99832846a3
commit
214c0d2e71
@ -82,6 +82,11 @@ GST_START_TEST (test_shm_sysmem_alloc)
|
||||
{
|
||||
GstBuffer *buf;
|
||||
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);
|
||||
|
||||
@ -116,6 +121,12 @@ GST_START_TEST (test_shm_alloc)
|
||||
GstAllocator *alloc;
|
||||
GstAllocationParams params;
|
||||
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);
|
||||
gst_caps_unref (caps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user