adapter: Fix mix-up between DTS and PTS
authorJesper Larsen <knorr.jesper@gmail.com>
Fri, 21 Oct 2016 13:40:47 +0000 (15:40 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 21 Oct 2016 13:47:22 +0000 (16:47 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=773319

libs/gst/base/gstadapter.c

index 079a2b5..fd71195 100644 (file)
@@ -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;
 }