summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJohn Grossman <johngro@google.com>2012-03-19 16:04:18 -0700
committerJohn Grossman <johngro@google.com>2012-03-21 14:01:47 -0700
commit092bae63f14eac9538a5d4e60a528af255471a6f (patch)
treeee57327c615ff4f3a645de2a159fe787a829285b /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfa9ea48ddf0d75ff9e8556299fa0e0c1fe436f6d (diff)
LibAAH_RTP: Properly handle EOS conditions.
EOS was being treated as a flush operation which was causing problems. In particular, the transmitter was delcaring that playback was complete early (by the clock lead time of the system, which was 1 second in this case). Also, the receiver was treating the EOS message just like the flush message, immediately destroying the substreams associated with the program without letting them play out first. Change the transmitter to send the EOS message like it always does, but have it wait until the media time of the last sample has arrived before reporting playback complete to the app level of things. On the receiver side of things, don't treat the EOS message like the flush message. Instead, have the EOS message simply put the substream into EOS mode, allowing it to signal EOS to its decoder and shut off the isAboutToUnderflow hack. Change-Id: Ibe3ac01044373f83edb7a5f4b70478bd78c16d11
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions