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:
redblue-pkt
2019-01-06 20:46:46 +01:00
committed by max_10
parent fec9aab4ee
commit d1a9d34c55

View File

@@ -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;
}
}