Skip to content

Commit

Permalink
encoder: take control of the ogg_packet output from the Vorbis encoder
Browse files Browse the repository at this point in the history
I'm not totally positive that this is necessary at this point, but it seems
safer that assuming it's not needed.
  • Loading branch information
TooTallNate committed Feb 19, 2013
1 parent 6d61859 commit 1d36621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/encoder.js
Expand Up @@ -269,6 +269,8 @@ Encoder.prototype._flushpacket = function (output, fn) {
binding.vorbis_bitrate_flushpacket(this.vd, packet, function (rtn) { binding.vorbis_bitrate_flushpacket(this.vd, packet, function (rtn) {
debug('vorbis_bitrate_flushpacket() return = %d', rtn); debug('vorbis_bitrate_flushpacket() return = %d', rtn);
if (1 === rtn) { if (1 === rtn) {
packet.replace();

// got a packet, output it // got a packet, output it
// the consumer should call `pageout()` after this packet // the consumer should call `pageout()` after this packet
packet.pageout = true; packet.pageout = true;
Expand Down

0 comments on commit 1d36621

Please sign in to comment.