libspark: fix cAudio::do_mute()

Origin commit data
------------------
Branch: master
Commit: 1cddb85070
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-25 (Sat, 25 Feb 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-02-25 21:14:04 +01:00
parent 347921654a
commit befa14ce69

View File

@@ -75,6 +75,9 @@ int cAudio::do_mute(bool enable, bool remember)
{ {
f = open("/proc/stb/avs/0/volume", O_RDWR); f = open("/proc/stb/avs/0/volume", O_RDWR);
read(f, str, 4); read(f, str, 4);
close(f);
str[3] = '\0';
f = open("/proc/stb/avs/0/volume", O_RDWR);
write(f, str, strlen(str)); write(f, str, strlen(str));
close(f); close(f);
} }