ofmlabs/jsmad — Issue #4: playback finish is not handled properly
Author: jussi-kalliokoski
Created: 2011-11-20 20:58:32+00:00
State: open

when a file's end is reached, jsmad throws

```
Uncaught Header decoding failed
Mad.Frame.decodeframe.js:366
refillplayer.js:62
(anonymous function)player.js:92
AUDIOLIB.SinkClass.processaudiolib.js:2550
bufferFill
```

then it starts throwing

```
Uncaught TypeError: Cannot read property 'flags' of null
Mad.Frame.decodeframe.js:362
refillplayer.js:62
(anonymous function)player.js:92
AUDIOLIB.SinkClass.processaudiolib.js:2550
bufferFill
```