in FLAC__stream_encoder_set_metadata(), copy the metadata array of pointers instead...