[gst-cvs] gst-plugins-good: dv1394: Fix the internal clock even more

Zaheer Abbas Merali zaheer at kemper.freedesktop.org
Thu Jun 10 03:05:36 PDT 2010


Module: gst-plugins-good
Branch: master
Commit: 2061fc0ccbd0c5f42d910133214ebd3d5f3dce42
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=2061fc0ccbd0c5f42d910133214ebd3d5f3dce42

Author: Andoni Morales Alastruey <amorales at flumotion.com>
Date:   Thu Jun 10 11:04:38 2010 +0100

dv1394: Fix the internal clock even more

The cycleCount register is 13 bits long and the cycleOffset one
is 12 bits long. To read the cycleCount register we need to shift
12 bits and not 13. Fixes #615461

---

 ext/raw1394/gst1394clock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ext/raw1394/gst1394clock.c b/ext/raw1394/gst1394clock.c
index a14e2a2..6f1546a 100644
--- a/ext/raw1394/gst1394clock.c
+++ b/ext/raw1394/gst1394clock.c
@@ -128,7 +128,7 @@ gst_1394_clock_get_internal_time (GstClock * clock)
     result = (((((guint64) _1394clock->cycle_timer_hi) << 32) |
             cycle_timer) >> 25) * GST_SECOND;
     /* add the microseconds from the cycleCount counter */
-    result += (((cycle_timer >> 13) & 0x1fff) * 125) * GST_USECOND;
+    result += (((cycle_timer >> 12) & 0x1fff) * 125) * GST_USECOND;
 
     GST_LOG_OBJECT (clock, "result %" GST_TIME_FORMAT, GST_TIME_ARGS (result));
   } else {





More information about the Gstreamer-commits mailing list