diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-11-19 19:00:05 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-11-19 19:02:22 +0100 |
commit | 81d3fda6e85181f11e0acb4fcaf60ac49a6e9aac (patch) | |
tree | 2920027b050a02bb0de1d5e5ff25dfbd9d96e738 /libs | |
parent | 7537505ed09551e6e3ab62b6af8c5c9cf99dbc25 (diff) |
basesink: Clamp the base time correctly in position reporting
When clamping the base time, correctly use 'now', instead of
'-now' - the intent is to prevent 'now-base' ever being
negative, which would cause a position report outside the segment.
Fixes: #602419
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstbasesink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index e9c2ca759..b27e90da5 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -4386,7 +4386,7 @@ gst_base_sink_get_position (GstBaseSink * basesink, GstFormat format, base += accum; base += latency; if (GST_CLOCK_DIFF (base, now) < 0) - base = -now; + base = now; /* for negative rates we need to count back from the segment * duration. */ |