summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <heftig@archlinux.org>2023-03-03 18:40:22 +0000
committerTim-Philipp Müller <tim@centricular.com>2023-04-16 16:08:01 +0100
commit026e82361b999d94e89548b18ebf36dcb3b3a743 (patch)
tree3d9464c49da06c15fb7736c12a7726fa86ed7b0e
parente3fa7c0dda6a716601feaa88e553e9d499c2eff4 (diff)
downloadgstreamer-026e82361b999d94e89548b18ebf36dcb3b3a743.tar.gz
imagesequencesrc: Properly set default location
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/4431>
-rw-r--r--subprojects/gst-plugins-good/docs/gst_plugins_cache.json2
-rw-r--r--subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json
index 206a6b1b27..0258497e0e 100644
--- a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json
+++ b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json
@@ -9555,7 +9555,7 @@
"construct": false,
"construct-only": false,
"controllable": false,
- "default": "NULL",
+ "default": "%%05d",
"mutable": "null",
"readable": true,
"type": "gchararray",
diff --git a/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c b/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c
index c778df7e1b..d7a1dc45f3 100644
--- a/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c
+++ b/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c
@@ -354,7 +354,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;