Skip to content

Commit

Permalink
pvr: new advanced setting that allows to turn of channel icon auto sc…
Browse files Browse the repository at this point in the history
…an during internal channel groups loading
  • Loading branch information
nemphys committed Dec 7, 2012
1 parent 7c698c6 commit 1f5b852
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbmc/pvr/channels/PVRChannelGroupInternal.cpp
Expand Up @@ -21,6 +21,7 @@
#include "PVRChannelGroupInternal.h"

#include "settings/GUISettings.h"
#include "settings/AdvancedSettings.h"
#include "guilib/GUIWindowManager.h"
#include "dialogs/GUIDialogYesNo.h"
#include "dialogs/GUIDialogOK.h"
Expand Down Expand Up @@ -330,7 +331,9 @@ bool CPVRChannelGroupInternal::UpdateGroupEntries(const CPVRChannelGroup &channe
if (CPVRChannelGroup::UpdateGroupEntries(channels))
{
/* try to find channel icons */
SearchAndSetChannelIcons();
if (g_advancedSettings.m_bPVRChannelIconsAutoScan)
SearchAndSetChannelIcons();

g_PVRTimers->UpdateChannels();
Persist();

Expand Down
2 changes: 2 additions & 0 deletions xbmc/settings/AdvancedSettings.cpp
Expand Up @@ -295,6 +295,7 @@ void CAdvancedSettings::Initialize()
m_iPVRMinVideoCacheLevel = 5;
m_iPVRMinAudioCacheLevel = 10;
m_bPVRCacheInDvdPlayer = true;
m_bPVRChannelIconsAutoScan = true;

m_measureRefreshrate = false;

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

XMLUtils::GetBoolean(pRootElement, "measurerefreshrate", m_measureRefreshrate);
Expand Down
1 change: 1 addition & 0 deletions xbmc/settings/AdvancedSettings.h
Expand Up @@ -335,6 +335,7 @@ class CAdvancedSettings
int m_iPVRMinVideoCacheLevel; /*!< @brief cache up to this level in the video buffer buffer before resuming playback if the buffers run dry */
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_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 1f5b852

Please sign in to comment.