Commit 43ceadb0 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

tests: qtmux: cleanup element sooner

... to avoid stray refs in sticky caps events.
parent 6bb7fdf4
......@@ -223,6 +223,9 @@ check_qtmux_pad (GstStaticPadTemplate * srctemplate, const gchar * sinkname,
/* at least expect ftyp, mdat header, buffer chunk and moov */
fail_unless (num_buffers >= 4);
/* clean up first to clear any pending refs in sticky caps */
cleanup_qtmux (qtmux, sinkname);
for (i = 0; i < num_buffers; ++i) {
outbuffer = GST_BUFFER (buffers->data);
fail_if (outbuffer == NULL);
......@@ -262,8 +265,6 @@ check_qtmux_pad (GstStaticPadTemplate * srctemplate, const gchar * sinkname,
g_list_free (buffers);
buffers = NULL;
cleanup_qtmux (qtmux, sinkname);
}
static void
......@@ -311,6 +312,9 @@ check_qtmux_pad_fragmented (GstStaticPadTemplate * srctemplate,
* and optionally mfra */
fail_unless (num_buffers >= 5);
/* clean up first to clear any pending refs in sticky caps */
cleanup_qtmux (qtmux, sinkname);
for (i = 0; i < num_buffers; ++i) {
outbuffer = GST_BUFFER (buffers->data);
fail_if (outbuffer == NULL);
......@@ -360,8 +364,6 @@ check_qtmux_pad_fragmented (GstStaticPadTemplate * srctemplate,
g_list_free (buffers);
buffers = NULL;
cleanup_qtmux (qtmux, sinkname);
}
/* dts-method dd */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment