[Bug 767507] audiovisualizer: Timestamp adjustment calculations wrong for >1 channel

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Jun 11 02:51:58 UTC 2016


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

--- Comment #2 from Thomas Jones <thomas.jones at utoronto.ca> ---
Created attachment 329603
  --> https://bugzilla.gnome.org/attachment.cgi?id=329603&action=edit
Fix

Actually I just noticed that the my "ought to be" is still wrong it really
ought to be this:

ts = gst_adapter_prev_pts (scope->priv->adapter, &dist);
if (GST_CLOCK_TIME_IS_VALID (ts)) {
  ts += gst_util_uint64_scale_int (dist, GST_SECOND, 
               rate * GST_AUDIO_INFO_BPF (&scope->ainfo));
}

Attached a patch

-- 
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