flacenc and flacdec: Fix unreported latency
Both flacenc and flacdec elements buffer 100ms and they do not report latency. This can be easily checked by running the following pipeline (no audio playing):
gst-launch-1.0 alsasrc ! flacenc ! flacparse ! flacdec ! alsasink
The latency of both codecs can be checked by looking at the buffer timestamps with the following pipeline:
gst-launch-1.0 -v alsasrc ! identity silent=false ! flacenc ! identity silent=false ! flacparse ! flacdec ! identity silent=false ! alsasink
Both elements buffer 100ms before outputing a buffer, which makes a total of 200ms of unreported latency in the first pipeline.
The following patch report that latency in both elements and audio can be heard.