[gstreamer-bugs] [Bug 623003] Major problems with calls to gst_util_uint64_scale()

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jun 27 23:32:03 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=623003
  GStreamer | gst-plugins-base | git

--- Comment #4 from Sebastian Dröge <slomo at circular-chaos.org> 2010-06-28 06:31:59 UTC ---
--- a/gst/videotestsrc/gstvideotestsrc.c
+++ b/gst/videotestsrc/gstvideotestsrc.c
@@ -730,6 +730,9 @@ gst_video_test_src_do_seek (GstBaseSrc * bsrc, GstSegment * 
     src->n_frames = 0;
   }
   if (src->rate_numerator) {
+    g_print ("%p %p\n", src, bsrc);
+    g_print ("%d %d\n", src->rate_numerator, src->rate_denominator);
+    g_print ("%llu\n", gst_util_uint64_scale (100, 2, 10));
     src->running_time = gst_util_uint64_scale (src->n_frames,
         src->rate_denominator * GST_SECOND, src->rate_numerator);
   } else {


This gives correct output for all g_prints and makes everything work. Removing
all g_prints breaks it again, keeping one of them (no matter which) fixes it
again.

Adding
src->running_time = gst_util_uint64_scale (100, 2, 10);
instead of the g_prints makes it work too.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list