mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
waylandsink: g_mkstemp is safer than mkstep
This commit is contained in:
parent
bed7a679b5
commit
dc79b8d761
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue