audiovisualizer: Clean up / fix input metadata handling
The following discussion from !6320 (merged) should be addressed:
-
@slomo started a discussion: This code is all just very strange. It would cause wrong PTS/etc to be passed to the subclass, and other metadata.
I think the correct solution here would be to take the prev PTS/etc from the adapter, interpolate based on the byte offset and just ignore
GstMeta
s. Not having them is probably better than having the wrong ones.Also this currently keeps memory of the last buffer alive until the object is disposed, which is not ideal either.