pad: don't accept flush-stop on inactive pads
authorWim Taymans <wtaymans@redhat.com>
Thu, 21 Aug 2014 13:49:17 +0000 (15:49 +0200)
committerWim Taymans <wtaymans@redhat.com>
Tue, 2 Sep 2014 10:04:15 +0000 (12:04 +0200)
commit060b16ac75ac227d4cfe1db89ccdc4f4b31545ff
tree2ed1af5747dca7af52b4e750c97648b35d479c4f
parent63a943aa8215be781b62b77dfdb2d2ad2c534899
pad: don't accept flush-stop on inactive pads

Inactive pads should at all times have the flushing flag set. This means
that when we get a flush-stop on an inactive pad we must ignore it.

On sinkpads, make this more explicit. We used to not clear the flush
flag but remove the events and then return an error because the flushing
flag was set. Now just simply refuse the event without doing anything.

On srcpads, check that we are trying to push a flush-stop event and
refuse it. We would allow this and mark the srcpad as non-flushing
anymore.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=735357
gst/gstpad.c