[Bug 745684] Video playback on windows hangs at the end (no EOS message)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 5 11:44:41 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=745684

--- Comment #8 from Thiago Sousa Santos <thiagossantos at gmail.com> ---
ringbuffer gstaudioringbuffer.c:1571:default_commit: copy 442 bytes

while the format is S16LE, 2 channels. So the bytes per frame is 4.

442 / 4 = 110.5 (oops)

So we are writing 442 bytes, which means 110 frames and a half. And then we
rely on;

in_samples -= towrite / bpf;
out_samples -= towrite / bpf;

Which will decrease only the 110 samples and ignore that that half sample was
also there.

In the end the math doesn't add up and we have 0 bytes to copy while
in_samples/out_samples haven't reached 0 yet, so we loop again and again.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list