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:
Thiago Santos 2014-01-30 03:28:45 -03:00
parent 06fec6709d
commit 8255f0bb10

View file

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