}
static void
-check_buffers (guint expected, gboolean headers_in_caps)
+check_buffers (guint expected)
{
GstBuffer *outbuffer;
guint i, num_buffers;
/* ... and nothing ends up on the global buffer list */
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
gst_buffer_unref (inbuffer);
- fail_unless (g_list_length (buffers) == 0);
+ check_buffers (0);
/* cleanup */
cleanup_opusdec (opusdec);
"could not set to ready");
/* default frame size is 20 ms, at 48000 Hz that's 960 samples */
- check_buffers ((nsamples + 959) / 960, FALSE);
+ check_buffers ((nsamples + 959) / 960);
/* cleanup */
cleanup_opusenc (opusenc);
/* change random parameters */
g_object_set (opusenc, param_changes[step].param, param_changes[step].value,
NULL);
+
+ check_buffers (1);
}
gst_caps_unref (caps);