summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY4
-rw-r--r--dxr3interface.c5
3 files changed, 7 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 23925de..22fb732 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -26,5 +26,6 @@ Stephan Skrodzki
Ville Skyttä
Mikko Tuumanen
Sascha Volkenandt
+Kimmo Vuorinen
Thank you very much :)
diff --git a/HISTORY b/HISTORY
index dc19026..a3794b7 100644
--- a/HISTORY
+++ b/HISTORY
@@ -283,6 +283,8 @@ NOTE: I havent found time to include all of the languages, will be done in pre2
(Ville Skyttä, Martin Cap, Luca Olivetti)
- remove unused dxr3unixserversocket.* from 0.2.x (Ville Skyttä)
- fix sound with the MP3 plugin and VDR >= 1.3.18 (Antti Järvinen)
-- fix aspect ratio after returning from the MPlayer plugin (Luca Olivetti)
+- set aspect ratio and audio mode to unknown when releasing devices, fixes
+ the setup eg. after returning from the MPlayer plugin
+ (Luca Olivetti, Kimmo Vuorinen)
- rework OSD color management, fixes color "bleeding" (Luca Olivetti)
- sync SPU decoder with VDR 1.3.23 (Ville Skyttä)
diff --git a/dxr3interface.c b/dxr3interface.c
index fb6b25f..0176ce4 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -32,6 +32,7 @@
const int LPCM_HEADER_LENGTH = 7;
const int ZEROBUFFER_SIZE = 4096;
uint8_t zerobuffer[ZEROBUFFER_SIZE] = {0};
+const uint32_t UNKNOWN_AUDIO_MODE = 9; // default, unused value
// ==================================
//! helper function to generate name
@@ -106,8 +107,7 @@ m_fdControl(-1), m_fdVideo(-1), m_fdAudio(-1), m_fdSpu(-1)
m_audioDataRate = 0;
m_audioSampleSize = 0;
- // default value 9 = unused value
- m_audioMode = 9;
+ m_audioMode = UNKNOWN_AUDIO_MODE;
m_aspectRatio = UNKNOWN_ASPECT_RATIO;
m_spuMode = EM8300_SPUMODE_OFF;
@@ -751,6 +751,7 @@ void cDxr3Interface::ExternalReleaseDevices()
if (m_fdAudio > -1) close(m_fdAudio);
m_fdControl = m_fdVideo = m_fdSpu = m_fdAudio = -1;
m_aspectRatio = UNKNOWN_ASPECT_RATIO;
+ m_audioMode = UNKNOWN_AUDIO_MODE;
m_ExternalReleased = true;