mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
motioncells: use NULL instead of g_strdup(NULL)
This commit is contained in:
parent
572b9788f5
commit
c788678059
1 changed files with 4 additions and 4 deletions
|
@ -331,9 +331,9 @@ gst_motion_cells_init (GstMotioncells * filter)
|
|||
filter->postnomotion = POST_NO_MOTION_DEF;
|
||||
filter->minimum_motion_frames = MINIMUM_MOTION_FRAMES_DEF;
|
||||
|
||||
filter->prev_datafile = g_strdup (NULL);
|
||||
filter->cur_datafile = g_strdup (NULL);
|
||||
filter->basename_datafile = g_strdup (NULL);
|
||||
filter->prev_datafile = NULL;
|
||||
filter->cur_datafile = NULL;
|
||||
filter->basename_datafile = NULL;
|
||||
filter->datafile_extension = g_strdup (DEF_DATAFILEEXT);
|
||||
filter->sensitivity = SENSITIVITY_DEFAULT;
|
||||
filter->threshold = THRESHOLD_DEFAULT;
|
||||
|
@ -451,7 +451,7 @@ gst_motion_cells_set_property (GObject * object, guint prop_id,
|
|||
filter->basename_datafile = g_value_dup_string (value);
|
||||
|
||||
if (strlen (filter->basename_datafile) == 0) {
|
||||
filter->cur_datafile = g_strdup (NULL);
|
||||
filter->cur_datafile = NULL;
|
||||
break;
|
||||
}
|
||||
filter->cur_datafile =
|
||||
|
|
Loading…
Reference in a new issue