GNOME Bugzilla – Bug 738568
videotestsrc: assertion failed error
Last modified: 2014-10-21 09:28:42 UTC
In Videotestsrc, timestamp_offset is being declared as an int64 variable, for which the min value of G_MININT64 is -9223372036854775808, if we launch videotestsrc with this value, "videotestsrc timestamp-offset=-9223372036854775808 ! ximagesink" it gives an assertion error GStreamer:ERROR:gstpoll.c:1242:gst_poll_wait: assertion failed: ("Value of time " "timeout" " is out of timespec's range" && ((timeout) / GST_SECOND) < G_MAXLONG) Ideally timestamp_offset, should be of type GstClockTime, which is uint64. Made the changes according to the same and adjusted the max value of timestamp_offset, based on the timespec's calculation. Please review the fix.
Created attachment 288569 [details] [review] videotestsrc assertion error
Comment on attachment 288569 [details] [review] videotestsrc assertion error Same comments about the overflow here as in the aggregator patch
Created attachment 288934 [details] [review] videotestsrc assertion error
Review of attachment 288934 [details] [review]: ::: gst/videotestsrc/gstvideotestsrc.c @@ +184,3 @@ DEFAULT_PATTERN, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_TIMESTAMP_OFFSET, + g_param_spec_uint64 ("timestamp-offset", "Timestamp offset", Don't change the type of the property, that's an API change :)
Created attachment 289009 [details] [review] videotestsrc assertion error
commit c2224b805941bd77b57f24e7b86f0a5ba3113135 Author: Vineeth T M <vineeth.tm@samsung.com> Date: Tue Oct 21 14:43:30 2014 +0530 videotestsrc: assertion error timestamp_offset is being declared as an int64 variable, for which the min value of G_MININT64 is -9223372036854775808 Changing the minimum and maximum limit for the offset variable. https://bugzilla.gnome.org/show_bug.cgi?id=738568