diff options
author | topfs2 <topfs2@svn> | 2009-11-21 12:56:49 +0000 |
---|---|---|
committer | topfs2 <topfs2@svn> | 2009-11-21 12:56:49 +0000 |
commit | a522b0b0a62691d922e94065bcbdbcb1e455674c (patch) | |
tree | 4689fcc1870eee144eed72e83dddb447f2b9712e | |
parent | dcd8b72e3e6443f35132e0d041f418010ba336ac (diff) |
[Fixed] Proper changed detection in HALProvider.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24827 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/linux/HALProvider.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xbmc/linux/HALProvider.cpp b/xbmc/linux/HALProvider.cpp index a303a89dc9..415627e194 100644 --- a/xbmc/linux/HALProvider.cpp +++ b/xbmc/linux/HALProvider.cpp @@ -86,12 +86,10 @@ std::vector<CStdString> CHALProvider::GetDiskUsage() bool CHALProvider::PumpDriveChangeEvents(IStorageEventsCallback *callback) { //Pump HalManager dry of events - while(g_HalManager.Update()) ; + bool changed = false; + while (g_HalManager.Update()) + changed = true; - VECSOURCES drives; - GetRemovableDrives(drives); - bool changed = drives.size() != m_removableLength; - m_removableLength = drives.size(); return changed; } #endif |