summaryrefslogtreecommitdiff
path: root/ext/wayland
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-05-14 19:35:33 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-06-17 13:51:21 +0200
commit549bdb4a09bdcacd0a1d961d55bf8802844e5173 (patch)
treea34366168bb3fa691f40616f14bffde28a1a230d /ext/wayland
parent4208ae62034001aa138b18b32d6492a2d8b750e3 (diff)
downloadgstreamer-plugins-bad-549bdb4a09bdcacd0a1d961d55bf8802844e5173.tar.gz
waylandsink: Use XDG_RUNTIME_DIR instead of /tmp for the shm file
Diffstat (limited to 'ext/wayland')
-rw-r--r--ext/wayland/waylandpool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/wayland/waylandpool.c b/ext/wayland/waylandpool.c
index 659440186..0310e8938 100644
--- a/ext/wayland/waylandpool.c
+++ b/ext/wayland/waylandpool.c
@@ -133,7 +133,8 @@ make_shm_pool (GstWlDisplay * display, int size, void **data)
char filename[1024];
static int init = 0;
- snprintf (filename, 256, "%s-%d-%s", "/tmp/wayland-shm", init++, "XXXXXX");
+ snprintf (filename, 256, "%s/%s-%d-%s", g_get_user_runtime_dir (),
+ "wayland-shm", init++, "XXXXXX");
fd = mkstemp (filename);
if (fd < 0) {