mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue