identity: Return FLUSHING instead of EOS and don't start waiting for anything if...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 16 Aug 2017 19:47:31 +0000 (22:47 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Aug 2017 19:50:49 +0000 (22:50 +0300)
commit82ed369991ff87cd9a84720f3e706983d1e1151c
treefc98ecb6425cafe0784c761eb2f3cf833fa6badf
parente7996a23d6f09145240ce4f673ef199cf8e4df7c
identity: Return FLUSHING instead of EOS and don't start waiting for anything if currently flushing

Otherwise we might try unscheduling a clock id (that does not exist
yet), then the streaming thread waits for id and the state change never
continues because the streaming thread is blocked.

Also shutting down and flushing and similar should return FLUSHING, not
EOS. The stream is not over, we're just not accepting any buffers
anymore.
plugins/elements/gstidentity.c
plugins/elements/gstidentity.h