plugins: *queue* elements: Handle STREAM_START in EOS situation
authorEdward Hervey <edward@centricular.com>
Wed, 9 Aug 2017 08:51:39 +0000 (10:51 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 9 Aug 2017 08:54:17 +0000 (10:54 +0200)
commite2f8dc0aeff50de64e568831966b4df831d1fa1c
tree1c3a85083188087716e5a04046efa11f4470adba
parent849dfe82f16aa1066323850daf89eebcd63547aa
plugins: *queue* elements: Handle STREAM_START in EOS situation

When queue-like elements are in "EOS" situation (received GST_FLOW_EOS
from downstream or EOS was pushed), they drain buffers/events that
wouldn't be processed anyway and let through events that might
modify the EOS situation.

Previously only GST_EVENT_EOS and GST_EVENT_SEGMENT events were let
through, but we also need to allow GST_EVENT_STREAM_START to go
through since it resets the EOS state of pads since 1.6

https://bugzilla.gnome.org/show_bug.cgi?id=786034
plugins/elements/gstmultiqueue.c
plugins/elements/gstqueue.c
plugins/elements/gstqueue2.c