Revert "mpegtspacketizer: Convert PCR times to GStreamer times before comparing them...
authorSebastian Dröge <sebastian@centricular.com>
Tue, 5 Aug 2014 08:42:28 +0000 (10:42 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 5 Aug 2014 08:42:28 +0000 (10:42 +0200)
This reverts commit 9f186c6ab32c1e949916d385186b2d400190add6.

That commit was actually completely wrong, nevermind.

gst/mpegtsdemux/mpegtspacketizer.c

index 9feb8ed..60cb9a2 100644 (file)
@@ -1962,8 +1962,7 @@ record_pcr (MpegTSPacketizer2 * packetizer, MpegTSPCR * pcrtable,
     return;
   }
   /* If PCR diff is greater than 500ms, create new group */
-  if (G_UNLIKELY (PCRTIME_TO_GSTTIME (corpcr) -
-          PCRTIME_TO_GSTTIME (current->pending[current->last].pcr) >
+  if (G_UNLIKELY (corpcr - current->pending[current->last].pcr >
           500 * PCR_MSECOND)) {
     GST_DEBUG ("New PCR more than 500ms away, handling discont");
     /* Take values from current and put them in the current group (closing it) */