gstreamer/tests
Vivia Nikolaidou 5cccf9846f segment: Correct stream_time calc for negative applied rate
Updated gst_segment_position_from_stream_time and gst_segment_to_stream_time to reflect correct calculations for the case when the applied rate is negative.

Pasting from design docs:

===============================
Stream time is calculated using the buffer times and the preceding SEGMENT
event as follows:

    stream_time = (B.timestamp - S.start) * ABS (S.applied_rate) + S.time

For negative rates, B.timestamp will go backwards from S.stop to S.start,
making the stream time go backwards.
===============================

Therefore, the calculation for applied_rate < 0 should be:

    stream_time = (S.stop - B.timestamp) * ABS (S.applied_rate) + S.time

and the reverse:

    B.timestamp = S.stop - (stream_time - S.time) / ABS (S.applied_rate)

https://bugzilla.gnome.org/show_bug.cgi?id=756810
2015-10-27 17:13:11 +02:00
..
benchmarks downloadbuffer, benchmarks: fix error leaks in failure code paths 2015-09-15 18:21:58 +01:00
check segment: Correct stream_time calc for negative applied rate 2015-10-27 17:13:11 +02:00
examples controller: Added absolute direct control binding, example and test 2015-06-12 10:07:24 +02:00
misc tools: remove outdated completion script 2015-03-18 14:16:48 +01:00
.gitignore Add new streamiddemux binaries to .gitignore 2015-03-14 16:05:57 +00:00
Makefile.am configure: add --disable-tools and --disable-benchmarks options 2012-06-26 23:12:56 +01:00
README README: update after removal of "old" dir. 2010-07-05 12:26:42 +03:00

This directory contains regression tests, functionality tests, examples,
benchmarks, ...

benchmarks/
   benchmarks to profile pieces of GStreamer
check/
   unit tests using the check library, non-interactive
examples/
   small examples demonstrating the use of various features
misc/
   prototypes, random bits, ...