test-onvif-server: cast ntp-offset property value to 64 bit
authorLenny Jorissen <lennyjorissen@gmail.com>
Fri, 12 Jun 2020 13:38:45 +0000 (15:38 +0200)
committerLenny Jorissen <lenny@thesafegroup.com>
Fri, 12 Jun 2020 17:02:29 +0000 (19:02 +0200)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/134>

examples/test-onvif-server.c

index 2a8a9cf..bcd48af 100644 (file)
@@ -568,8 +568,8 @@ onvif_factory_create_element (GstRTSPMediaFactory * factory,
   gst_element_add_pad (pbin, gst_ghost_pad_new ("src", srcpad));
   gst_object_unref (srcpad);
 
-  g_object_set (onvifts, "set-t-bit", TRUE, "set-e-bit", TRUE, "ntp-offset", 0,
-      "drop-out-of-segment", FALSE, NULL);
+  g_object_set (onvifts, "set-t-bit", TRUE, "set-e-bit", TRUE, "ntp-offset",
+      G_GUINT64_CONSTANT (0), "drop-out-of-segment", FALSE, NULL);
 
   gst_element_set_clock (onvifts, gst_system_clock_obtain ());