mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
libs: va: Add O_CLOEXEC flag at opening drm device.
So any other potential subprocess won't have access to it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2391>
This commit is contained in:
parent
de3f6d4ce3
commit
754dca11ef
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ gst_va_display_drm_create_va_display (GstVaDisplay * display)
|
|||
int fd, saved_errno = 0;
|
||||
GstVaDisplayDrm *self = GST_VA_DISPLAY_DRM (display);
|
||||
|
||||
fd = open (self->path, O_RDWR);
|
||||
fd = open (self->path, O_CLOEXEC | O_RDWR);
|
||||
saved_errno = errno;
|
||||
if (fd < 0) {
|
||||
GST_WARNING_OBJECT (self, "Failed to open %s: %s", self->path,
|
||||
|
|
Loading…
Reference in a new issue