Skip to content

Commit

Permalink
bugfix in time measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
soliton4 committed May 2, 2015
1 parent 51b565d commit 6c978ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Player/Player.js
Expand Up @@ -194,7 +194,7 @@ p.decode(<binary>);
};*/

//onPictureDecoded.call(self, new Uint8Array(data), worker.lastDim.width, worker.lastDim.height, nowValue() - worker.lastDim.timeStarted, worker.lastDim.timeStarted);
onPictureDecoded.call(self, new Uint8Array(data.buf), data.width, data.height, (new Date()).getTime() - data.timeStarted, data.timeStarted);
onPictureDecoded.call(self, new Uint8Array(data.buf), data.width, data.height, nowValue() - data.timeStarted, data.timeStarted);

}, false);

Expand All @@ -207,7 +207,7 @@ p.decode(<binary>);
// region of interest
var copyU8 = new Uint8Array(parData.length);
copyU8.set( parData, 0, parData.length );
worker.postMessage({buf: copyU8.buffer, time: (new Date()).getTime()}, [copyU8.buffer]); // Send data to our worker.
worker.postMessage({buf: copyU8.buffer, time: nowValue()}, [copyU8.buffer]); // Send data to our worker.
};

}else{
Expand Down

0 comments on commit 6c978ff

Please sign in to comment.