tests: camerabin: improve preview handling in tests
Always erase the preview image data to allow the next check for it to operate properly
This commit is contained in:
parent
06fec6709d
commit
8255f0bb10
@ -360,6 +360,13 @@ check_preview_image (GstElement * camera, const gchar * filename, gint index)
|
||||
preview_caps));
|
||||
}
|
||||
g_free (prev_filename);
|
||||
|
||||
/* clean up preview info for next capture */
|
||||
g_free (preview_filename);
|
||||
preview_filename = NULL;
|
||||
if (preview_sample)
|
||||
gst_sample_unref (preview_sample);
|
||||
preview_sample = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user