waylandsink: g_mkstemp is safer than mkstep

This commit is contained in:
Luis de Bethencourt 2015-03-03 16:50:30 +00:00
parent bed7a679b5
commit dc79b8d761

View file

@ -53,7 +53,7 @@ gst_wl_shm_allocator_alloc (GstAllocator * allocator, gsize size,
snprintf (filename, 1024, "%s/%s-%d-%s", g_get_user_runtime_dir (),
"wayland-shm", init++, "XXXXXX");
fd = mkstemp (filename);
fd = g_mkstemp (filename);
if (fd < 0) {
GST_ERROR_OBJECT (self, "opening temp file %s failed: %s", filename,
strerror (errno));