Skip to content

Commit

Permalink
pvr: new advanced setting that allows marking channel icons populdate…
Browse files Browse the repository at this point in the history
…d by auto scan as "user-set".
  • Loading branch information
nemphys committed Dec 12, 2012
1 parent 7b0c29c commit 63c6186
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/pvr/channels/PVRChannelGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#include "settings/GUISettings.h"
#include "settings/AdvancedSettings.h"
#include "guilib/GUIWindowManager.h"
#include "dialogs/GUIDialogYesNo.h"
#include "dialogs/GUIDialogOK.h"
Expand Down Expand Up @@ -222,7 +223,7 @@ bool CPVRChannelGroup::SetChannelIconPath(CPVRChannelPtr channel, const std::str
{
if (CFile::Exists(strIconPath))
{
channel->SetIconPath(strIconPath);
channel->SetIconPath(strIconPath, g_advancedSettings.m_bPVRAutoScanIconsUserSet);
return true;
}
return false;
Expand Down
2 changes: 2 additions & 0 deletions xbmc/settings/AdvancedSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ void CAdvancedSettings::Initialize()
m_iPVRMinAudioCacheLevel = 10;
m_bPVRCacheInDvdPlayer = true;
m_bPVRChannelIconsAutoScan = true;
m_bPVRAutoScanIconsUserSet = false;

m_measureRefreshrate = false;

Expand Down Expand Up @@ -984,6 +985,7 @@ void CAdvancedSettings::ParseSettingsFile(const CStdString &file)
XMLUtils::GetInt(pPVR, "minaudiocachelevel", m_iPVRMinAudioCacheLevel, 0, 100);
XMLUtils::GetBoolean(pPVR, "cacheindvdplayer", m_bPVRCacheInDvdPlayer);
XMLUtils::GetBoolean(pPVR, "channeliconsautoscan", m_bPVRChannelIconsAutoScan);
XMLUtils::GetBoolean(pPVR, "autoscaniconsuserset", m_bPVRAutoScanIconsUserSet);
}

XMLUtils::GetBoolean(pRootElement, "measurerefreshrate", m_measureRefreshrate);
Expand Down
1 change: 1 addition & 0 deletions xbmc/settings/AdvancedSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ class CAdvancedSettings
int m_iPVRMinAudioCacheLevel; /*!< @brief cache up to this level in the audio buffer before resuming playback if the buffers run dry */
bool m_bPVRCacheInDvdPlayer; /*!< @brief true to use "CACHESTATE_PVR" in CDVDPlayer (default) */
bool m_bPVRChannelIconsAutoScan; /*!< @brief automatically scan user defined folder for channel icons when loading internal channel groups */
bool m_bPVRAutoScanIconsUserSet; /*!< @brief mark channel icons populated by auto scan as "user set" */

bool m_measureRefreshrate; //when true the videoreferenceclock will measure the refreshrate when direct3d is used
//otherwise it will use the windows refreshrate
Expand Down

0 comments on commit 63c6186

Please sign in to comment.