Loading services/audioflinger/AudioFlinger.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -3490,9 +3490,14 @@ void AudioFlinger::dumpTee(int fd, const sp<NBAIO_Source>& source, audio_io_hand // FIXME not big-endian safe write(teeFd, &temp, sizeof(temp)); close(teeFd); // TODO Should create file with temporary name and then rename to final if non-empty. if (total > 0) { if (fd >= 0) { dprintf(fd, "tee copied to %s\n", teePath); } } else { unlink(teePath); } } else { if (fd >= 0) { dprintf(fd, "unable to create tee %s: %s\n", teePath, strerror(errno)); Loading Loading
services/audioflinger/AudioFlinger.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -3490,9 +3490,14 @@ void AudioFlinger::dumpTee(int fd, const sp<NBAIO_Source>& source, audio_io_hand // FIXME not big-endian safe write(teeFd, &temp, sizeof(temp)); close(teeFd); // TODO Should create file with temporary name and then rename to final if non-empty. if (total > 0) { if (fd >= 0) { dprintf(fd, "tee copied to %s\n", teePath); } } else { unlink(teePath); } } else { if (fd >= 0) { dprintf(fd, "unable to create tee %s: %s\n", teePath, strerror(errno)); Loading