summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>2013-03-05 11:28:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-06 09:27:11 +0000
commitfcf671be890f9fb49067c5f86b182bf8b8e7b9c0 (patch)
treecbeb28b8ab9f3b2c3ad5f7c5c4f7cba75c58f52d /native
parentf4d6f153e66eb54f7da5f9bd8f5b6fcc25dfd919 (diff)
downloadframeworks_base-fcf671be890f9fb49067c5f86b182bf8b8e7b9c0.zip
frameworks_base-fcf671be890f9fb49067c5f86b182bf8b8e7b9c0.tar.gz
frameworks_base-fcf671be890f9fb49067c5f86b182bf8b8e7b9c0.tar.bz2
Fix EBADF in TTS synthesizeToFile method.
Recent TTS change altered how the TextToSpeech.synthesizeToFile method operates. Previously, synthesis service was responsible for creating output file. Now, client API creates a file and then sends opened file descriptor using ParcelFileDescriptor. On service side, I forgot to keep a reference to a ParcelFileDescriptor object. When GC was removing it, it was closing underlying file descriptor, resulting in a EBADF error for all following writes to the output file. This change makes use of a ParcelFileDescriptor.AutoCloseOutputStream to keep a reference to the ParcelFileDescriptor. It will be referenced until we are done with writing. Change-Id: I8327af0eaeabaebfbbd8816d959783e89086a7c5
Diffstat (limited to 'native')
0 files changed, 0 insertions, 0 deletions