Closed brandonkirsch closed 5 years ago
This looks good, but do you have a sample OGG file where this is relevant?
This is relevant in streaming situations, such as tuning into an Icecast broadcast that's in mid-stream.
In the .ogg file I've linked to below, I captured ~ 5 seconds of a live Icecast stream to disk.
@TooTallNate why hasn't this been merged yet? I could really use that 👍
rebased and fixed white space issues here 👉 #19
sorry for the very long delay in getting this in 🙈 ❤️
Added extra handling in DecoderStream.afterPacketout() to deal with recoverable errors in libogg's ogg_stream_packetout.
Now afterPacketout() will correctly retry when ogg_stream_packetout sets rtn = -1
This makes node-ogg more resilient to imperfect (but perfectly usable) ogg streams.
For more info: http://xiph.org/ogg/doc/libogg/ogg_stream_packetout.html