[gst-cvs] gst-plugins-good: flvmux: index timestamps should be in seconds, not milliseconds

Robert Swain robswain at kemper.freedesktop.org
Wed Jan 27 11:24:49 PST 2010


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

Author: Robert Swain <robert.swain at collabora.co.uk>
Date:   Wed Jan 27 17:53:07 2010 +0100

flvmux: index timestamps should be in seconds, not milliseconds

---

 gst/flv/gstflvmux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c
index e1cb143..2d4b817 100644
--- a/gst/flv/gstflvmux.c
+++ b/gst/flv/gstflvmux.c
@@ -544,7 +544,7 @@ gst_flv_mux_push (GstFlvMux * mux, GstBuffer * buffer)
     GstFlvMuxIndexEntry *entry = g_slice_new (GstFlvMuxIndexEntry);
     entry->position = mux->byte_count;
     entry->time =
-        gst_guint64_to_gdouble (GST_BUFFER_TIMESTAMP (buffer)) / GST_MSECOND;
+        gst_guint64_to_gdouble (GST_BUFFER_TIMESTAMP (buffer)) / GST_SECOND;
     mux->index = g_list_prepend (mux->index, entry);
   }
 





More information about the Gstreamer-commits mailing list