mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Merge branch 'jojo61:master' into master
This commit is contained in:
commit
c229e77151
19
audio.c
19
audio.c
@ -1951,7 +1951,7 @@ void AudioSetVolume(int volume) {
|
|||||||
}
|
}
|
||||||
AudioAmplifier = volume;
|
AudioAmplifier = volume;
|
||||||
if (!AudioSoftVolume) {
|
if (!AudioSoftVolume) {
|
||||||
AudioUsedModule->SetVolume(volume);
|
//AudioUsedModule->SetVolume(volume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2173,6 +2173,22 @@ found:
|
|||||||
AudioDoingInit = 1;
|
AudioDoingInit = 1;
|
||||||
AudioRingInit();
|
AudioRingInit();
|
||||||
AudioUsedModule->Init();
|
AudioUsedModule->Init();
|
||||||
|
|
||||||
|
#if 1
|
||||||
|
for (u = 0; u < AudioRatesMax; ++u) {
|
||||||
|
|
||||||
|
AudioChannelMatrix[u][1]=AudioChannelMatrix[u][2]=AudioChannelMatrix[u][3]=AudioChannelMatrix[u][4]=\
|
||||||
|
AudioChannelMatrix[u][5]=AudioChannelMatrix[u][6]=AudioChannelMatrix[u][7]=AudioChannelMatrix[u][8]=2;
|
||||||
|
//printf("audio: %6dHz supports %d %d %d %d %d %d %d %d channels\n", AudioRatesTable[u],
|
||||||
|
// AudioChannelMatrix[u][1], AudioChannelMatrix[u][2], AudioChannelMatrix[u][3], AudioChannelMatrix[u][4],
|
||||||
|
// AudioChannelMatrix[u][5], AudioChannelMatrix[u][6], AudioChannelMatrix[u][7], AudioChannelMatrix[u][8]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
AudioChannelsInHw[1]=AudioChannelsInHw[3]=AudioChannelsInHw[4]=AudioChannelsInHw[5]=AudioChannelsInHw[6]=AudioChannelsInHw[7]=AudioChannelsInHw[8]=0;
|
||||||
|
AudioChannelsInHw[2]=2;
|
||||||
|
|
||||||
|
#else
|
||||||
//
|
//
|
||||||
// Check which channels/rates/formats are supported
|
// Check which channels/rates/formats are supported
|
||||||
// FIXME: we force 44.1Khz and 48Khz must be supported equal
|
// FIXME: we force 44.1Khz and 48Khz must be supported equal
|
||||||
@ -2294,6 +2310,7 @@ found:
|
|||||||
AudioChannelMatrix[u][1], AudioChannelMatrix[u][2], AudioChannelMatrix[u][3], AudioChannelMatrix[u][4],
|
AudioChannelMatrix[u][1], AudioChannelMatrix[u][2], AudioChannelMatrix[u][3], AudioChannelMatrix[u][4],
|
||||||
AudioChannelMatrix[u][5], AudioChannelMatrix[u][6], AudioChannelMatrix[u][7], AudioChannelMatrix[u][8]);
|
AudioChannelMatrix[u][5], AudioChannelMatrix[u][6], AudioChannelMatrix[u][7], AudioChannelMatrix[u][8]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef USE_AUDIO_THREAD
|
#ifdef USE_AUDIO_THREAD
|
||||||
if (AudioUsedModule->Thread) { // supports threads
|
if (AudioUsedModule->Thread) { // supports threads
|
||||||
AudioInitThread();
|
AudioInitThread();
|
||||||
|
@ -61,7 +61,7 @@ extern void ToggleLUT();
|
|||||||
/// vdr-plugin version number.
|
/// vdr-plugin version number.
|
||||||
/// Makefile extracts the version number for generating the file name
|
/// Makefile extracts the version number for generating the file name
|
||||||
/// for the distribution archive.
|
/// for the distribution archive.
|
||||||
static const char *const VERSION = "3.6"
|
static const char *const VERSION = "3.7.2"
|
||||||
#ifdef GIT_REV
|
#ifdef GIT_REV
|
||||||
"-GIT" GIT_REV
|
"-GIT" GIT_REV
|
||||||
#endif
|
#endif
|
||||||
|
@ -364,7 +364,7 @@ static int Ac3Check(const uint8_t *data, int size) {
|
|||||||
if ((data[4] & 0xF0) == 0xF0) { // invalid fscod fscod2
|
if ((data[4] & 0xF0) == 0xF0) { // invalid fscod fscod2
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
frame_size = ((data[2] & 0x03) << 8) + data[3] + 1;
|
frame_size = ((data[2] & 0x07) << 8) + data[3] + 1;
|
||||||
frame_size *= 2;
|
frame_size *= 2;
|
||||||
} else { // AC-3
|
} else { // AC-3
|
||||||
int fscod;
|
int fscod;
|
||||||
|
2
video.c
2
video.c
@ -1216,7 +1216,7 @@ static void EglExit(void) {
|
|||||||
// must destroy glx
|
// must destroy glx
|
||||||
// if (glXGetCurrentContext() == glxContext) {
|
// if (glXGetCurrentContext() == glxContext) {
|
||||||
// if currently used, set to none
|
// if currently used, set to none
|
||||||
glXMakeCurrent(XlibDisplay, None, NULL);
|
// glXMakeCurrent(XlibDisplay, None, NULL);
|
||||||
// }
|
// }
|
||||||
if (OSDcontext) {
|
if (OSDcontext) {
|
||||||
glXDestroyContext(XlibDisplay, OSDcontext);
|
glXDestroyContext(XlibDisplay, OSDcontext);
|
||||||
|
Loading…
Reference in New Issue
Block a user