From 636984ed48dda82dd8a3daa3b33429977f5a75cc Mon Sep 17 00:00:00 2001 From: max_10 Date: Wed, 27 Feb 2019 12:24:05 +0100 Subject: [PATCH] Revert "try to fix slowly close internet radio/music player" This reverts commit 65dc5d1363158c52db31be727f10a8ef036bff77. Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/5cfe8e97cceebe9913936a7bba0011df0663081b Author: max_10 Date: 2019-02-27 (Wed, 27 Feb 2019) ------------------ This commit was generated by Migit --- libarmbox/audio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libarmbox/audio.cpp b/libarmbox/audio.cpp index 9fc7101..85bf78d 100644 --- a/libarmbox/audio.cpp +++ b/libarmbox/audio.cpp @@ -314,7 +314,7 @@ int cAudio::WriteClip(unsigned char *buffer, int size) int cAudio::StopClip() { hal_debug("%s\n", __FUNCTION__); -#if 0 + if (clipfd < 0) { hal_info("%s: clipfd not yet opened\n", __FUNCTION__); return -1; @@ -326,7 +326,6 @@ int cAudio::StopClip() mixer_fd = -1; } setVolume(volume, volume); -#endif return 0; };