end of stream snafu
This commit is contained in:
parent
1265eedd93
commit
06a655ab8c
1 changed files with 4 additions and 1 deletions
|
|
@ -569,6 +569,7 @@ public class MovieCoder {
|
|||
class VideoStreamer {
|
||||
|
||||
private int chunkNo = 0;
|
||||
private int lastChunk = -1;
|
||||
private EncodingProcess ep;
|
||||
private Chunk chunk;
|
||||
private String key;
|
||||
|
|
@ -606,8 +607,10 @@ public class MovieCoder {
|
|||
if (ep != null) {
|
||||
int numChunks = ep.waitForData();
|
||||
System.out.println("Got " + numChunks);
|
||||
if (numChunks < 0) {
|
||||
if (numChunks == -Integer.MAX_VALUE) {
|
||||
this.done = true;
|
||||
} else if (numChunks < 0) {
|
||||
done = chunkNo >= -numChunks;
|
||||
}
|
||||
} else {
|
||||
// We ran out of chunks, so we must be done.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue