[Bug 740557] videotestsrc: add ball motion based on system clock
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Nov 30 20:50:42 PST 2014
https://bugzilla.gnome.org/show_bug.cgi?id=740557
GStreamer | gst-plugins-base | git
--- Comment #21 from carl at personnelware.com 2014-12-01 04:50:38 UTC ---
I am not sure where to get running-time from.
I took a look at the timeovelay and saw
gst_time_overlay_get_text (GstBaseTextOverlay * overlay, GstBuffer *
video_frame)
GstClockTime time = GST_BUFFER_TIMESTAMP (video_frame);
I am guessing video_frame is gst_video_test_src_ball (GstVideoTestSrc * v,
GstVideoFrame * frame)
I tried to use frame, but that didn't seem to work:
time = GST_BUFFER_TIMESTAMP (frame);
if (GST_CLOCK_TIME_IS_VALID (time)) {
secs = (guint) ((time / GST_SECOND) % 60);
msecs = (guint) ((time % GST_SECOND) / (1000 * 1000));
} else {
GST_DEBUG ("buffer without valid timestamp");
secs = 0;
msecs = 0;
}
rad = 2 * G_PI * msecs;
--
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