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)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 20 Nov 2019 19:48:19 +0000 (19:48 +0000)
commit9f50cd49cb2050a1b6396f5eb71af3655699bf97
treebcb2ff2cd62f2e31b607198ab800a094f84200d6
parentfba94862a9e8205c7a83bdf15adcee5e8535f605
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