correcting the next_ts calculations

Original commit message from CVS:
correcting the next_ts calculations
This commit is contained in:
Zeeshan Ali 2002-07-05 19:30:20 +00:00
parent fe0263870f
commit 0a96ed5027

View 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;