1
0
mirror of https://github.com/vdr-projects/vdr.git synced 2025-03-01 10:50:46 +00:00

Fixed restoring the volume at program start

This commit is contained in:
Klaus Schmidinger 2022-12-19 15:13:56 +01:00
parent 87cf0b7a3d
commit 5b134cb23e
3 changed files with 8 additions and 4 deletions

@ -3381,6 +3381,7 @@ Matthias Senzel <matthias.senzel@t-online.de>
when Flush() was called
for reporting that if an error occurs while recording, the respective entry in the list
of recordings was not updated immediately
for fixing restoring the volume at program start
Marek Nazarko <mnazarko@gmail.com>
for translating OSD texts to the Polish language

@ -9833,6 +9833,7 @@ Video Disk Recorder Revision History
- Avoiding a zero sized array in cDevice::GetDevice() (thanks to Marko Mäkelä).
- Now checking the video directory after setting the user id.
2022-12-16:
2022-12-19:
- Updated the Italian OSD texts (thanks to Diego Pierotto).
- Fixed restoring the volume at program start (thanks to Matthias Senzel).

8
vdr.c

@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
* $Id: vdr.c 5.11 2022/12/12 10:27:38 kls Exp $
* $Id: vdr.c 5.12 2022/12/19 15:13:56 kls Exp $
*/
#include <getopt.h>
@ -917,10 +917,12 @@ int main(int argc, char *argv[])
LOCK_CHANNELS_READ;
Channels->SwitchTo(Setup.CurrentChannel);
}
// Restore volume:
cDevice::PrimaryDevice()->SetVolume(Setup.CurrentVolume, true);
if (MuteAudio)
cDevice::PrimaryDevice()->ToggleMute();
else
cDevice::PrimaryDevice()->SetVolume(Setup.CurrentVolume, true);
// Signal handlers: