GNOME Bugzilla – Bug 585660
segfault in scaletempo plugin
Last modified: 2009-06-14 18:02:11 UTC
scaletempo plugin segfaults on some machines when playing at rates other than 1.0: http://sourceforge.net/tracker/?func=detail&aid=2104199&group_id=220192&atid=1048723 Line 233 in gstscaletempo.c (http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst/scaletempo/gstscaletempo.c#n233) must be changed from i = -(p->samples_overlap - p->samples_per_frame); to i = -((glong)p->samples_overlap - (glong)p->samples_per_frame); Otherwise i won't be a negative number as intended. This is because p->samples_overlap and p->samples_per_frame are both unsigned.
commit f0db7a4d6812eeeb88a8631333dca43d5697fd4c Author: Maximilian Högner <pbmaxi@hoegners.de> Date: Sun Jun 14 20:00:51 2009 +0200 scaletempo: Explicitely cast to signed integers to fix a segfault Fixes bug #585660. I'll push this after gst-plugins-bad is open for commits again.