mpegtsmux: Change unit test to not generate zero-sized buffers ever

This commit is contained in:
Sebastian Dröge 2018-12-10 16:14:07 +02:00 committed by Nicolas Dufresne
parent bb135ba764
commit fed05fcdf2

View file

@ -182,7 +182,7 @@ check_tsmux_pad (GstStaticPadTemplate * srctemplate,
if (input_buf_size >= 0)
inbuffer = gst_buffer_new_and_alloc (input_buf_size);
else
inbuffer = gst_buffer_new_and_alloc (g_random_int_range (0, 49141));
inbuffer = gst_buffer_new_and_alloc (g_random_int_range (1, 49141));
GST_BUFFER_TIMESTAMP (inbuffer) = ts;
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);