oggmux: refactor how EOS is determined
authorDavid Schleef <ds@schleef.org>
Wed, 8 Jun 2011 04:30:18 +0000 (21:30 -0700)
committerDavid Schleef <ds@schleef.org>
Sat, 11 Jun 2011 06:54:07 +0000 (23:54 -0700)
commitea0d666d11689a2a78846a700e90a4997415c350
tree1cea04298f85ac396a6ff663c984183d1140e2ef
parentefdd32580e887aeb68108d9578c0388bbc373375
oggmux: refactor how EOS is determined

This decreases the number of buffers held on each pad by one,
eliminating next_buffer.  Simplifies the logic by relying solely
on CollectPads to let us know when a pad is in EOS.  As a side
benefit, the collect pads related code is structured more like
other CollectPad users.

The previous code would occasionally mark the wrong pad as EOS,
causing the code to get in a state where all the streams were
finished, but EOS hadn't been sent to the source pad.
ext/ogg/gstoggmux.c
ext/ogg/gstoggmux.h