After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309354 - timestamp inconsitency in audioscale
timestamp inconsitency in audioscale
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.10
Other All
: Normal normal
: 0.8.11
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-02 21:11 UTC by Wouter Paesen
Modified: 2005-07-11 12:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (3.13 KB, text/plain)
2005-07-02 21:12 UTC, Wouter Paesen
  Details
fixes the problem (7.26 KB, patch)
2005-07-02 21:13 UTC, Wouter Paesen
none Details | Review

Description Wouter Paesen 2005-07-02 21:11:20 UTC
Please describe the problem:
For a perfect audio stream it should at all times be true that

     timestamp(n) + duration(n) == timestamp(n+1)

Audioscale breaks this due to rounding errors in the implementation.

Steps to reproduce:
I'll attach a simple testcase for this

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Wouter Paesen 2005-07-02 21:12:19 UTC
Created attachment 48571 [details]
testcase
Comment 2 Wouter Paesen 2005-07-02 21:13:10 UTC
Created attachment 48572 [details] [review]
fixes the problem
Comment 3 Ronald Bultje 2005-07-11 12:43:58 UTC
Whoa, dude, this is a lot of code change for such a simple rounding error.
Anyway, from some tests, it works fine still, and after some review, it seems
all correct, so applied... Some more explanation would be nice next time. :).