nvdec: Respect upstream provided timestamp
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 30 Jul 2019 14:49:09 +0000 (23:49 +0900)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 5 Aug 2019 20:32:39 +0000 (20:32 +0000)
Decoder sometimes reports nonincreasing timestamp.
Use input frame's timestamp like other decoder elements.

sys/nvcodec/gstnvdec.c

index 907c322..fc8d639 100644 (file)
@@ -536,7 +536,6 @@ parser_display_callback (GstNvDec * nvdec, CUVIDPARSERDISPINFO * dispinfo)
       GST_INFO_OBJECT (nvdec,
           "timestamp mismatch, diff: %" GST_STIME_FORMAT,
           GST_STIME_ARGS (GST_CLOCK_DIFF (dispinfo->timestamp, frame->pts)));
-      frame->pts = dispinfo->timestamp;
     }
   }