mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed restoring the volume at program start
This commit is contained in:
parent
87cf0b7a3d
commit
5b134cb23e
@ -3381,6 +3381,7 @@ Matthias Senzel <matthias.senzel@t-online.de>
|
|||||||
when Flush() was called
|
when Flush() was called
|
||||||
for reporting that if an error occurs while recording, the respective entry in the list
|
for reporting that if an error occurs while recording, the respective entry in the list
|
||||||
of recordings was not updated immediately
|
of recordings was not updated immediately
|
||||||
|
for fixing restoring the volume at program start
|
||||||
|
|
||||||
Marek Nazarko <mnazarko@gmail.com>
|
Marek Nazarko <mnazarko@gmail.com>
|
||||||
for translating OSD texts to the Polish language
|
for translating OSD texts to the Polish language
|
||||||
|
3
HISTORY
3
HISTORY
@ -9833,6 +9833,7 @@ Video Disk Recorder Revision History
|
|||||||
- Avoiding a zero sized array in cDevice::GetDevice() (thanks to Marko Mäkelä).
|
- Avoiding a zero sized array in cDevice::GetDevice() (thanks to Marko Mäkelä).
|
||||||
- Now checking the video directory after setting the user id.
|
- 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).
|
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
||||||
|
- Fixed restoring the volume at program start (thanks to Matthias Senzel).
|
||||||
|
8
vdr.c
8
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.tvdr.de
|
* 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>
|
#include <getopt.h>
|
||||||
@ -917,10 +917,12 @@ int main(int argc, char *argv[])
|
|||||||
LOCK_CHANNELS_READ;
|
LOCK_CHANNELS_READ;
|
||||||
Channels->SwitchTo(Setup.CurrentChannel);
|
Channels->SwitchTo(Setup.CurrentChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Restore volume:
|
||||||
|
|
||||||
|
cDevice::PrimaryDevice()->SetVolume(Setup.CurrentVolume, true);
|
||||||
if (MuteAudio)
|
if (MuteAudio)
|
||||||
cDevice::PrimaryDevice()->ToggleMute();
|
cDevice::PrimaryDevice()->ToggleMute();
|
||||||
else
|
|
||||||
cDevice::PrimaryDevice()->SetVolume(Setup.CurrentVolume, true);
|
|
||||||
|
|
||||||
// Signal handlers:
|
// Signal handlers:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user