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
This commit is contained in:
parent
a24db77217
commit
c2224b8059
@ -184,8 +184,9 @@ gst_video_test_src_class_init (GstVideoTestSrcClass * klass)
|
|||||||
DEFAULT_PATTERN, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
DEFAULT_PATTERN, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_TIMESTAMP_OFFSET,
|
g_object_class_install_property (gobject_class, PROP_TIMESTAMP_OFFSET,
|
||||||
g_param_spec_int64 ("timestamp-offset", "Timestamp offset",
|
g_param_spec_int64 ("timestamp-offset", "Timestamp offset",
|
||||||
"An offset added to timestamps set on buffers (in ns)", G_MININT64,
|
"An offset added to timestamps set on buffers (in ns)", 0,
|
||||||
G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
(G_MAXLONG == G_MAXINT64) ? G_MAXINT64 : (G_MAXLONG * GST_SECOND - 1),
|
||||||
|
0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_IS_LIVE,
|
g_object_class_install_property (gobject_class, PROP_IS_LIVE,
|
||||||
g_param_spec_boolean ("is-live", "Is Live",
|
g_param_spec_boolean ("is-live", "Is Live",
|
||||||
"Whether to act as a live source", DEFAULT_IS_LIVE,
|
"Whether to act as a live source", DEFAULT_IS_LIVE,
|
||||||
|
@ -135,6 +135,7 @@ struct _GstVideoTestSrc {
|
|||||||
gint y_invert;
|
gint y_invert;
|
||||||
|
|
||||||
/* private */
|
/* private */
|
||||||
|
/* FIXME 2.0: Change type to GstClockTime */
|
||||||
gint64 timestamp_offset; /* base offset */
|
gint64 timestamp_offset; /* base offset */
|
||||||
|
|
||||||
/* running time and frames for current caps */
|
/* running time and frames for current caps */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user