Skip to content

Commit

Permalink
fixed: since nvidia's 295 series driver, popen() hangs if there's a g…
Browse files Browse the repository at this point in the history
…l context attached to the current thread, fixes xbmc#12746
  • Loading branch information
bobo1on1 committed Mar 5, 2012
1 parent da8f6fd commit a02f53c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions xbmc/video/VideoReferenceClock.cpp
Expand Up @@ -398,7 +398,17 @@ bool CVideoReferenceClock::ParseNvSettings(int& RefreshRate)
return false;
}

//since nvidia's 295 series driver, popen will hang if there's a current GL context
//see trac ticket #12746
glXMakeCurrent(m_Dpy, None, NULL);

NvSettings = popen(NVSETTINGSCMD, "r");

if (!m_bIsATI)
glXMakeCurrent(m_Dpy, m_Window, m_Context);
else
glXMakeCurrent(m_Dpy, m_glPixmap, m_Context);

if (!NvSettings)
{
CLog::Log(LOGDEBUG, "CVideoReferenceClock: %s: %s", NVSETTINGSCMD, strerror(errno));
Expand Down

0 comments on commit a02f53c

Please sign in to comment.