On Tue Nov 21 15:16:09 2023 +0000, Alfred Agrell wrote:
Needed by Wagamama. Without it, the sound channel gets stuck looping the same ~second over and over. I completely agree it's ugly; feels to me like some kind of GStreamer or ffmpeg bug. If you can think of a better solution, do tell.
I doubt it's a bug per se; PCM audio output doesn't need to be framed according to the corresponding input, and GStreamer is within its rights to split samples as it wishes.
Rather, I suspect we should set the flag if and only if there are more samples to process. That might mean setting WG_SAMPLE_FLAG_INCOMPLETE in such a case for raw audio specifically, or it might mean adding a separate flag (WG_SAMPLE_FLAG_MORE_SAMPLES_AVAILABLE or something) and setting it for the WMA decoder specifically.