diff options
author | 2017-02-13 15:34:58 -0800 | |
---|---|---|
committer | 2017-02-13 17:24:58 -0800 | |
commit | bc225bfaa534acc25047fe844f19edc333b7a76a (patch) | |
tree | fa76941d893ad2e31d0961194c68893a4dc29c5a /tensorflow/contrib/ffmpeg | |
parent | d065a5d984794a0e59bc1787010ef4b911d4ef89 (diff) |
Fix code that ignores tensorflow::Status.
Add a new tensorflow::Status::IgnoreError() method to mark call sites where a Status has been intentionally ignored.
Change: 147402405
Diffstat (limited to 'tensorflow/contrib/ffmpeg')
-rw-r--r-- | tensorflow/contrib/ffmpeg/decode_audio_op.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/ffmpeg/decode_audio_op.cc b/tensorflow/contrib/ffmpeg/decode_audio_op.cc index 15a31f9d31..a6a945094b 100644 --- a/tensorflow/contrib/ffmpeg/decode_audio_op.cc +++ b/tensorflow/contrib/ffmpeg/decode_audio_op.cc @@ -53,7 +53,7 @@ class FileDeleter { explicit FileDeleter(const string& filename) : filename_(filename) {} ~FileDeleter() { Env& env = *Env::Default(); - env.DeleteFile(filename_); + env.DeleteFile(filename_).IgnoreError(); } private: |