mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
LinuxDvbAudioMute replace AUDIO_STOP, AUDIO_PLAY to AUDIO_SET_MUTE
Origin commit data
------------------
Branch: master
Commit: 55a0d5939e
Author: redblue-pkt <redblue-pkt@orange.pl>
Date: 2019-01-06 (Sun, 06 Jan 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -457,17 +457,17 @@ int LinuxDvbAudioMute(Context_t *context __attribute__((unused)), char *flag)
|
||||
{
|
||||
if (*flag == '1')
|
||||
{
|
||||
if (ioctl(audiofd, AUDIO_STOP, NULL) == -1)
|
||||
if (ioctl(audiofd, AUDIO_SET_MUTE, 1) == -1)
|
||||
{
|
||||
linuxdvb_err("AUDIO_STOP: ERROR %d, %s\n", errno, strerror(errno));
|
||||
linuxdvb_err("AUDIO_SET_MUTE: ERROR %d, %s\n", errno, strerror(errno));
|
||||
ret = cERR_LINUXDVB_ERROR;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ioctl(audiofd, AUDIO_PLAY) == -1)
|
||||
if (ioctl(audiofd, AUDIO_SET_MUTE, 0) == -1)
|
||||
{
|
||||
linuxdvb_err("AUDIO_PLAY: ERROR %d, %s\n", errno, strerror(errno));
|
||||
linuxdvb_err("AUDIO_SET_MUTE: ERROR %d, %s\n", errno, strerror(errno));
|
||||
ret = cERR_LINUXDVB_ERROR;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user