From 3901984621f00483714213144952377c295177c2 Mon Sep 17 00:00:00 2001 From: Aleksandr Slobodeniuk Date: Mon, 23 Jan 2023 15:39:22 +0100 Subject: [PATCH] videotestsrc: fix max value for timestamp-offset Compiled for x64 with msvc the timestamp-offset property max limit is 2147483646999999999 that is smaller then the timestamps provided by the rtspsrc. Part-of: --- .../gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c b/subprojects/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c index f736adaebd..06632d1499 100644 --- a/subprojects/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c +++ b/subprojects/gst-plugins-base/gst/videotestsrc/gstvideotestsrc.c @@ -291,8 +291,7 @@ gst_video_test_src_class_init (GstVideoTestSrcClass * klass) g_object_class_install_property (gobject_class, PROP_TIMESTAMP_OFFSET, g_param_spec_int64 ("timestamp-offset", "Timestamp offset", "An offset added to timestamps set on buffers (in ns)", 0, - (G_MAXLONG == G_MAXINT64) ? G_MAXINT64 : (G_MAXLONG * GST_SECOND - 1), - 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_IS_LIVE, g_param_spec_boolean ("is-live", "Is Live", "Whether to act as a live source", DEFAULT_IS_LIVE,