wavparse: Fix ignoring of last chunk in push mode
authorAmr Mahdi <amramahdi@gmail.com>
Wed, 7 Aug 2019 12:09:46 +0000 (12:09 +0000)
committerSebastian Dröge <slomo@coaxion.net>
Wed, 7 Aug 2019 12:09:46 +0000 (12:09 +0000)
commit5f01b9da051967952cdb37e4ebcfc57880537f8f
tree1de3e7798cbf9bfef1bfda06bd9b48fea4b956d0
parent3c4add469e753569a24d77dd351eca595130c264
wavparse: Fix ignoring of last chunk in push mode

In push mode (streaming), if the last audio payload chunk is less than the segment rate buffer size, it would be ignored since the plugin waits until it has at least segment rate bufer size of audio.

The fix is to introduce a flushing flag that indicates that no more audio will be available so that the plugin can recognize this condition and flush the data is has even if it is less
than the desired segment rate buffer size.
gst/wavparse/gstwavparse.c