I am porting Gstreamer to Android. It works fine to play audio.
But when playing video only few audio frame can be displayed at start, the others are dropped in GstRingBuffer::default_commit function.
In default_commit function, writeseg is less than segdone and GstAudioSink send 0x00000000 to GstAudioFlingerSink.
My doubt is the reader thread get one segment once time, but the writer thread compose one segment need several invokes.
Could you kindly give me some suggestion or information on this issues.