correcting the next_ts calculations
authorZeeshan Ali <zeenix@gmail.com>
Fri, 5 Jul 2002 19:30:20 +0000 (19:30 +0000)
committerZeeshan Ali <zeenix@gmail.com>
Fri, 5 Jul 2002 19:30:20 +0000 (19:30 +0000)
Original commit message from CVS:
correcting the next_ts calculations

ext/gsm/gstgsmenc.c

index 633863c..fb19b5e 100644 (file)
@@ -192,7 +192,7 @@ gst_gsmenc_chain (GstPad *pad, GstBuffer *buf)
 
     GST_BUFFER_TIMESTAMP (outbuf) = gsmenc->next_ts;
     gst_pad_push (gsmenc->srcpad, outbuf);
-    gsmenc->next_ts += (160.0 / gsmenc->rate) * 1000000;
+    gsmenc->next_ts += (160 / gsmenc->rate) * GST_SECOND;
 
     size -= 160;
     data += 160;