waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

MediaCodec#signalEndOfInputStream not respected #534

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a MediaCodec Surface input encoder ala Google Grafika or otherwise.
2. Stop sending input frames and attempt to signal the end of stream with 
mEncoder.signalEndOfInputStream();
2. Watch your drainEncoder loop spin indefinitely waiting for MediaCodec output 
buffers. 

What is the expected output? What do you see instead?

mEncoder.signalEndOfInputStream(); should queue an empty input buffer with the 
BUFFER_FLAG_END_OF_STREAM flag.

What version of the product are you using? On what operating system?

Google Glass XE 17.2

I discovered this behavior working on this project: 
https://github.com/OnlyInAmerica/GlassCast

Original issue reported on code.google.com by davidpbr...@gmail.com on 2 Jun 2014 at 5:29