parsebin: Emit 'drained' only for the top-level chain
authorEdward Hervey <edward@centricular.com>
Wed, 6 Sep 2017 14:50:31 +0000 (16:50 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 10 Nov 2017 09:05:26 +0000 (10:05 +0100)
commit92e88768443a21eab5d2dd6bc7a318c9b46e54f8
tree7b678a1e8a65204ad6ea496e463fadef4f84d990
parentb9aaa7f4f2b22865e3d0d5289c082be555d46587
parsebin: Emit 'drained' only for the top-level chain

Instead of emitting 'drained' whenever every single chain is drained
(which would result in plenty of signal emission, and would also
occur when switching groups), only emit it when the top-level chain
is drained.

Furthermore, mark unknown (and therefore unexposed) pads as drained
since we'll never get EOS on them.

https://bugzilla.gnome.org/show_bug.cgi?id=787367
gst/playback/gstparsebin.c