mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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/4425>
This commit is contained in:
parent
905accecc1
commit
020115dc34
2 changed files with 2 additions and 2 deletions
|
@ -9975,7 +9975,7 @@
|
||||||
"construct": false,
|
"construct": false,
|
||||||
"construct-only": false,
|
"construct-only": false,
|
||||||
"controllable": false,
|
"controllable": false,
|
||||||
"default": "NULL",
|
"default": "%%05d",
|
||||||
"mutable": "null",
|
"mutable": "null",
|
||||||
"readable": true,
|
"readable": true,
|
||||||
"type": "gchararray",
|
"type": "gchararray",
|
||||||
|
|
|
@ -356,7 +356,7 @@ gst_image_sequence_src_init (GstImageSequenceSrc * self)
|
||||||
self->start_index = DEFAULT_START_INDEX;
|
self->start_index = DEFAULT_START_INDEX;
|
||||||
self->index = 0;
|
self->index = 0;
|
||||||
self->stop_index = DEFAULT_STOP_INDEX;
|
self->stop_index = DEFAULT_STOP_INDEX;
|
||||||
self->path = NULL;
|
self->path = g_strdup (DEFAULT_LOCATION);
|
||||||
self->caps = NULL;
|
self->caps = NULL;
|
||||||
self->n_frames = 0;
|
self->n_frames = 0;
|
||||||
self->fps_n = 30;
|
self->fps_n = 30;
|
||||||
|
|
Loading…
Reference in a new issue