tests: qtdemux: fix crash on 32-bit architectures
authorTim-Philipp Müller <tim@centricular.com>
Thu, 12 Nov 2020 23:38:21 +0000 (23:38 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 12 Nov 2020 23:40:13 +0000 (23:40 +0000)
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/803

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/815>

tests/check/elements/qtdemux.c

index 5271c65..0c74827 100644 (file)
@@ -797,9 +797,10 @@ GST_START_TEST (test_qtdemux_pad_names)
       "protection-system", G_TYPE_STRING,
       "9a04f079-9840-4286-ab92-e65be0885f95", NULL);
   caps =
-      gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING,
-      "mss-fragmented", "timesacle", G_TYPE_UINT64, 10000000, "media-caps",
-      GST_TYPE_CAPS, mediacaps, NULL);
+      gst_caps_new_simple ("video/quicktime",
+      "variant", G_TYPE_STRING, "mss-fragmented",
+      "timesacle", G_TYPE_UINT64, G_GUINT64_CONSTANT (10000000),
+      "media-caps", GST_TYPE_CAPS, mediacaps, NULL);
 
   /* Send segment event* */
   event = gst_event_new_caps (caps);
@@ -852,9 +853,10 @@ GST_START_TEST (test_qtdemux_pad_names)
       "protection-system", G_TYPE_STRING,
       "9a04f079-9840-4286-ab92-e65be0885f95", NULL);
   caps =
-      gst_caps_new_simple ("video/quicktime", "variant", G_TYPE_STRING,
-      "mss-fragmented", "timesacle", G_TYPE_UINT64, 10000000, "media-caps",
-      GST_TYPE_CAPS, mediacaps, NULL);
+      gst_caps_new_simple ("video/quicktime",
+      "variant", G_TYPE_STRING, "mss-fragmented",
+      "timesacle", G_TYPE_UINT64, G_GUINT64_CONSTANT (10000000),
+      "media-caps", GST_TYPE_CAPS, mediacaps, NULL);
 
   /* Send segment event* */
   event = gst_event_new_caps (caps);