mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin: Fix crash in 'filename' property
Do not crash when filename property is set to NULL, use an empty string instead.
This commit is contained in:
parent
80e531a3c7
commit
72590ad056
1 changed files with 3 additions and 0 deletions
|
@ -1042,6 +1042,9 @@ gst_camerabin_set_flags (GstCameraBin * camera, GstCameraBinFlags flags)
|
|||
static void
|
||||
gst_camerabin_change_filename (GstCameraBin * camera, const gchar * name)
|
||||
{
|
||||
if (name == NULL)
|
||||
name = "";
|
||||
|
||||
if (0 != strcmp (camera->filename->str, name)) {
|
||||
GST_DEBUG_OBJECT (camera, "changing filename from '%s' to '%s'",
|
||||
camera->filename->str, name);
|
||||
|
|
Loading…
Reference in a new issue