aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortopfs2 <topfs2@svn>2009-11-21 12:56:49 +0000
committertopfs2 <topfs2@svn>2009-11-21 12:56:49 +0000
commita522b0b0a62691d922e94065bcbdbcb1e455674c (patch)
tree4689fcc1870eee144eed72e83dddb447f2b9712e
parentdcd8b72e3e6443f35132e0d041f418010ba336ac (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.cpp8
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