commit | 002ba29f89b9b8f8a6e6a0663565319a4fe26fbd | [log] [tgz] |
---|---|---|
author | Rakesh Iyer <rni@google.com> | Fri Apr 14 13:46:29 2017 -0700 |
committer | Rakesh Iyer <rni@google.com> | Fri Apr 14 13:46:29 2017 -0700 |
tree | 18fb017e5cc3347800aa5073fc048b73c4be99e4 | |
parent | f4a24e8cfd616016b1d64c0a31f57d4268431ad4 [diff] |
Fix divide by zero. Local media player seems to have gotten itself into a state where the queue was empty and yet the controls were enabled. While this its not clear how this is even possible, guard against crashing by checking for an empty queue state before dividing by queue size. Bug: 36179863 Test: I looked at the code real hard. Change-Id: I2c4e3991798e17efe9ac1643c89ed963604086ca