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:
Thiago Santos 2010-06-07 07:58:22 -03:00
parent 80e531a3c7
commit 72590ad056

View file

@ -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);