On Tue Apr 4 02:07:04 2023 +0000, Zebediah Figura wrote:
Maybe we could implement our own wg_format_from_caps_audio() rather
than using gst_audio_info_from_caps() directly? Like the other wg_format_from_caps_*() functions, we warn when find missing fileds instead of error. I don't think that solves the problem. If we're missing the sample rate, that's kind of a serious problem; we kind of need the sample rate in order to report it downstream. Does the stream ever give more specific caps?
I found that the original audio stream is actually wma. Caps of the wma stream is:
``` audio/x-wma wmaversion: 1 bitrate: 128000 depth: 16 rate: 44100 channels: 1 block_align: 743 codec_data: 00000100 ```
It loses some caps field after our reader decode it into audio/x-raw. I don't know why.