if (!bRestart)
{
- SaveCurrentFileSettings();
+ SaveFileState(true);
OutputDebugString("new file set audiostream:0\n");
// Switch to default options
return false;
}
-void CApplication::SaveCurrentFileSettings()
-{
- // don't store settings for PVR in video database
- if (m_itemCurrentFile->IsVideo() && !m_itemCurrentFile->IsPVRChannel())
- {
- // save video settings
- if (CMediaSettings::Get().GetCurrentVideoSettings() != CMediaSettings::Get().GetDefaultVideoSettings())
- {
- CVideoDatabase dbs;
- dbs.Open();
- dbs.SetVideoSettings(m_itemCurrentFile->GetPath(), CMediaSettings::Get().GetCurrentVideoSettings());
- dbs.Close();
- }
- }
- else if (m_itemCurrentFile->IsPVRChannel())
- {
- g_PVRManager.SaveCurrentChannelSettings();
- }
-}
-
bool CApplication::AlwaysProcess(const CAction& action)
{
// check if this button is mapped to a built-in function
float NavigationIdleTime();
static bool AlwaysProcess(const CAction& action);
- void SaveCurrentFileSettings();
-
bool InitDirectoriesLinux();
bool InitDirectoriesOSX();
bool InitDirectoriesWin32();