Tests fail to build because g_mkdtemp is available from glib since
2.26.
This patch adds a condition around the redefinition of
g_mkdtemp on the tests to only build it if glib is older than
2.26.
gst_element_set_state (pipeline, GST_STATE_NULL);
}
+#if !GLIB_CHECK_VERSION(2,26,0)
static gchar *
-g_mkdtemp (const gchar * template)
+g_mkdtemp (gchar * template)
{
- gchar *s;
gchar *tmpdir;
- s = g_strdup (template);
- tmpdir = mkdtemp (s);
+ tmpdir = mkdtemp (template);
if (tmpdir == NULL) {
- g_free (s);
+ g_free (template);
}
return tmpdir;
}
+#endif
GST_START_TEST (test_multifilesink_key_frame)
{
g_free (mfs_pattern);
g_free (my_tmpdir);
- g_free (template);
}
GST_END_TEST;
g_free (mfs_pattern);
g_free (my_tmpdir);
- g_free (template);
}
GST_END_TEST;
g_free (mfs_pattern);
g_free (my_tmpdir);
- g_free (template);
}
GST_END_TEST;