imagesequencesrc: Properly set default location
authorJan Alexander Steffens (heftig) <heftig@archlinux.org>
Fri, 3 Mar 2023 18:40:22 +0000 (18:40 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 14 Apr 2023 08:14:04 +0000 (08:14 +0000)
Noticed this because the generic_states test kept segfaulting at random.
GLibC 2.37 can crash when NULL is supplied as a format string.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4425>

subprojects/gst-plugins-good/docs/gst_plugins_cache.json
subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c

index 6dc4564f3685cf1661941cbdab6260739526d36f..7651a3eac5d996b1c65f0cb9dfb747fe186fcc1c 100644 (file)
                         "construct": false,
                         "construct-only": false,
                         "controllable": false,
-                        "default": "NULL",
+                        "default": "%%05d",
                         "mutable": "null",
                         "readable": true,
                         "type": "gchararray",
index 8581e73e3a94f8c11a3e0a539f73e03c96e374bf..3d59ec74a7c964cb1a9aafeed11a1d8dfbc6fdc8 100644 (file)
@@ -356,7 +356,7 @@ gst_image_sequence_src_init (GstImageSequenceSrc * self)
   self->start_index = DEFAULT_START_INDEX;
   self->index = 0;
   self->stop_index = DEFAULT_STOP_INDEX;
-  self->path = NULL;
+  self->path = g_strdup (DEFAULT_LOCATION);
   self->caps = NULL;
   self->n_frames = 0;
   self->fps_n = 30;