From 9ae7f465a509c4cb905952ffd7e2ee7d2b68cfad Mon Sep 17 00:00:00 2001 From: Jesper Larsen Date: Fri, 21 Oct 2016 15:40:47 +0200 Subject: [PATCH] adapter: Fix mix-up between DTS and PTS https://bugzilla.gnome.org/show_bug.cgi?id=773319 --- libs/gst/base/gstadapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/base/gstadapter.c b/libs/gst/base/gstadapter.c index 079a2b5..fd71195 100644 --- a/libs/gst/base/gstadapter.c +++ b/libs/gst/base/gstadapter.c @@ -1568,7 +1568,7 @@ gst_adapter_prev_pts_at_offset (GstAdapter * adapter, gsize offset, } if (distance) - *distance = adapter->dts_distance + offset; + *distance = adapter->pts_distance + offset; return pts; } -- 2.7.4