db-move: moved gcr from [testing] to [extra] (x86_64)
[arch-packages.git] / gstreamer / trunk / 0002-imagesequencesrc-Properly-set-default-location.patch
blobda0c92f6ca1dd54f80d24d4cc4e2ef8602885b21
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
3 Date: Fri, 3 Mar 2023 18:40:22 +0000
4 Subject: [PATCH] imagesequencesrc: Properly set default location
6 Noticed this because the generic_states test kept segfaulting at random.
7 GLibC 2.37 can crash when NULL is supplied as a format string.
8 ---
9 .../gst-plugins-good/gst/multifile/gstimagesequencesrc.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c b/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c
13 index 8581e73e3a94..3d59ec74a7c9 100644
14 --- a/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c
15 +++ b/subprojects/gst-plugins-good/gst/multifile/gstimagesequencesrc.c
16 @@ -356,7 +356,7 @@ gst_image_sequence_src_init (GstImageSequenceSrc * self)
17 self->start_index = DEFAULT_START_INDEX;
18 self->index = 0;
19 self->stop_index = DEFAULT_STOP_INDEX;
20 - self->path = NULL;
21 + self->path = g_strdup (DEFAULT_LOCATION);
22 self->caps = NULL;
23 self->n_frames = 0;
24 self->fps_n = 30;