mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
va:display: Don't close an fd with negative value
Cannot pass negative parameter to close() and thus no need to apply close() when fd < 0. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1131>
This commit is contained in:
parent
5e7aa06257
commit
8f678c95d6
1 changed files with 0 additions and 1 deletions
|
@ -140,7 +140,6 @@ gst_va_display_drm_create_va_display (GstVaDisplay * display)
|
|||
if (fd < 0) {
|
||||
GST_WARNING_OBJECT (self, "Failed to open %s: %s", self->path,
|
||||
g_strerror (saved_errno));
|
||||
close (fd);
|
||||
return 0;
|
||||
}
|
||||
#if HAVE_LIBDRM
|
||||
|
|
Loading…
Reference in a new issue