diff options
author | chriszero <zerov83@gmail.com> | 2015-10-02 20:07:19 +0200 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-10-02 20:07:19 +0200 |
commit | 0be6c14499cbc7351578198e8f15b3e1bf1b1335 (patch) | |
tree | 4f52aa690a45dfa1bc2354e0e562dba9978482b4 /Config.cpp | |
parent | 98a8f298b1886f63c99c8f2e0833e0393e5b5822 (diff) | |
download | vdr-plugin-plex-0be6c14499cbc7351578198e8f15b3e1bf1b1335.tar.gz vdr-plugin-plex-0be6c14499cbc7351578198e8f15b3e1bf1b1335.tar.bz2 |
Option to use AC3 audio without installing the custom profile to your pms
Diffstat (limited to 'Config.cpp')
-rw-r--r-- | Config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -106,6 +106,7 @@ bool Config::Parse(const char *name, const char *value) else if (strcasecmp(name, "UseMpv") == 0) Config::GetInstance().UseMpv = atoi(value) ? true : false; else if (strcasecmp(name, "ScrollByPage") == 0) Config::GetInstance().ScrollByPage = atoi(value) ? true : false; else if (strcasecmp(name, "ScrollAllAround") == 0) Config::GetInstance().ScrollAllAround = atoi(value) ? true : false; + else if (strcasecmp(name, "UseAc3") == 0) Config::GetInstance().UseAc3 = atoi(value) ? true : false; else parsed = false; if(!parsed) { @@ -155,9 +156,11 @@ cMyMenuSetupPage::cMyMenuSetupPage(void) ScrollByPage = Config::GetInstance().ScrollByPage; ScrollAllAround = Config::GetInstance().ScrollAllAround; DefaultViewMode = Config::GetInstance().DefaultViewMode; + UseAc3 = Config::GetInstance().UseAc3; Add(new cMenuEditBoolItem(tr("Hide main menu entry"), (int*)&HideMainMenuEntry, trVDR("no"), trVDR("yes"))); + Add(new cMenuEditBoolItem(tr("Use AC3 instead of aac Audio"), (int*)&UseAc3, trVDR("no"), trVDR("yes"))); Add(new cMenuEditBoolItem(tr("Use Mpv Plugin (If Availiable)"), (int*)&UseMpv, trVDR("no"), trVDR("yes"))); Add(new cMenuEditBoolItem(tr("Scroll by Page"), (int*)&ScrollByPage, trVDR("no"), trVDR("yes"))); Add(new cMenuEditBoolItem(tr("Scroll all around"), (int*)&ScrollAllAround, trVDR("no"), trVDR("yes"))); @@ -209,6 +212,7 @@ void cMyMenuSetupPage::Store(void) Config::GetInstance().UseMpv = UseMpv; Config::GetInstance().ScrollByPage = ScrollByPage; Config::GetInstance().ScrollAllAround = ScrollAllAround; + Config::GetInstance().UseAc3 = UseAc3; SetupStore("UseCustomTranscodeProfile", Config::GetInstance().UseCustomTranscodeProfile); SetupStore("HideMainMenuEntry", Config::GetInstance().HideMainMenuEntry); @@ -229,4 +233,5 @@ void cMyMenuSetupPage::Store(void) SetupStore("UseMpv", Config::GetInstance().UseMpv); SetupStore("ScrollByPage", Config::GetInstance().ScrollByPage); SetupStore("ScrollAllAround", Config::GetInstance().ScrollAllAround); + SetupStore("UseAc3", Config::GetInstance().ScrollAllAround); } |