This is broken too... I'm a moron
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 21 Oct 2002 21:06:16 +0000 (21:06 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Mon, 21 Oct 2002 21:06:16 +0000 (21:06 +0000)
Original commit message from CVS:
This is broken too... I'm a moron

sys/v4l/gstv4lmjpegsrc.c
sys/v4l/gstv4lsrc.c

index 9cd4b4f..f13669f 100644 (file)
@@ -368,7 +368,7 @@ gst_v4lmjpegsrc_get (GstPad *pad)
     v4lmjpegsrc->first_timestamp = v4lmjpegsrc->bsync.timestamp.tv_sec * GST_SECOND +
       v4lmjpegsrc->bsync.timestamp.tv_usec * GST_SECOND/1000000;
   GST_BUFFER_TIMESTAMP(buf) = v4lmjpegsrc->bsync.timestamp.tv_sec * GST_SECOND +
-    v4lmjpegsrc->bsync.timestamp.tv_usec - v4lmjpegsrc->first_timestamp * GST_SECOND/1000000;
+    v4lmjpegsrc->bsync.timestamp.tv_usec * GST_SECOND/1000000 - v4lmjpegsrc->first_timestamp;
 
   return buf;
 }
index 670e6ef..a337d5c 100644 (file)
@@ -467,7 +467,7 @@ gst_v4lsrc_get (GstPad *pad)
     v4lsrc->first_timestamp = v4lsrc->timestamp_soft_sync[num].tv_sec * GST_SECOND +
       v4lsrc->timestamp_soft_sync[num].tv_usec * GST_SECOND/1000000;
   GST_BUFFER_TIMESTAMP(buf) = v4lsrc->timestamp_soft_sync[num].tv_sec * GST_SECOND +
-    v4lsrc->timestamp_soft_sync[num].tv_usec - v4lsrc->first_timestamp * GST_SECOND/1000000;
+    v4lsrc->timestamp_soft_sync[num].tv_usec * GST_SECOND/1000000 - v4lsrc->first_timestamp;
 
   return buf;
 }