ducatividdec: print timestamp difference, not start timestamp
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 30 Oct 2012 11:34:34 +0000 (11:34 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 30 Oct 2012 11:34:34 +0000 (11:34 +0000)
src/gstducatividdec.c

index 597422fa5ab6a9be2c49a345135c6c0752f16e73..9722b1cfb3fc8b282ac89f51e89d455e76d8435e 100644 (file)
@@ -353,6 +353,7 @@ codec_process (GstDucatiVidDec * self, gboolean send, gboolean flush,
   t = gst_util_get_timestamp ();
   err = VIDDEC3_process (self->codec,
       self->inBufs, self->outBufs, self->inArgs, self->outArgs);
+  t = gst_util_get_timestamp () - t;
   GST_DEBUG_OBJECT (self, "VIDDEC3_process took %10dns (%d ms)", (gint) t,
       (gint) (t / 1000000));