gstreamer/tests/check
Vivia Nikolaidou 45f0f354ac 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-20 10:43:07 +03:00
..
elements funnel: Fix racy state change 2015-09-24 12:14:57 +02:00
generic check: Rename states unit test 2015-08-14 11:10:37 +02:00
gst segment: Correct stream_time calc for negative applied rate 2015-10-20 10:43:07 +03:00
libs controlpoint: change the padding to be of arch-independent size 2015-09-30 17:31:58 +02:00
pipelines Fix double semicolons 2015-03-10 09:24:28 +00:00
tools tests: refactor tools check a little 2014-10-31 16:10:01 +00:00
.gitignore tests: add check for gst-inspect --exists functionality 2012-09-01 23:02:10 +01:00
Makefile.am harness: add _set_forwarding function 2015-08-09 16:02:37 +01:00