diff options
author | scop <scop> | 2005-04-18 14:53:25 +0000 |
---|---|---|
committer | scop <scop> | 2005-04-18 14:53:25 +0000 |
commit | 4d4c6bb89da5b1cc3eff554412ea834337308cd5 (patch) | |
tree | 4f6d854a0955b077a36cfb77c8aa90b5aaec3565 | |
parent | 2395c3990c608db8da678359d627f4ab7152ec82 (diff) | |
download | vdr-plugin-dxr3-4d4c6bb89da5b1cc3eff554412ea834337308cd5.tar.gz vdr-plugin-dxr3-4d4c6bb89da5b1cc3eff554412ea834337308cd5.tar.bz2 |
Set audiomode to unknown when releasing devices, fixes digital sound after MPlayer plugin (Luca Olivetti, Kimmo Vuorinen).
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | dxr3interface.c | 5 |
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 :) @@ -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; |