Skip to content

Commit

Permalink
Windowing: GBM - close unused file descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
a1rwulf committed Jul 12, 2018
1 parent 8bda0d1 commit fadf1cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/windowing/gbm/DRMUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,17 @@ bool CDRMUtils::OpenDrm(bool needConnector)
{
if(!GetResources())
{
drmClose(m_fd);
m_fd = -1;
continue;
}

if (needConnector)
{
if(!FindConnector())
{
drmClose(m_fd);
m_fd = -1;
continue;
}

Expand Down

0 comments on commit fadf1cb

Please sign in to comment.