tsdemux: Refactor stream/program removal
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 1 Aug 2011 08:54:16 +0000 (10:54 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 1 Aug 2011 08:54:16 +0000 (10:54 +0200)
commit57279cdd249796a0b5ce0710dbb226a8b98faac9
tree37564d7fd7dd4dfef4fb22d21d47b577e9d4825f
parentcbc0a2f056aced60c7e8c8be861a18e0743f5af2
tsdemux: Refactor stream/program removal

The program_stopped vmethod was called before stream_removed vmethod
was being called. Since we only did stream-related operations in there,
we just remove the program_stopped vmethod and do everything in the
stream_removed one.

Also, make sure we flush out all pending data before sending EOS.
gst/mpegtsdemux/tsdemux.c