summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>2009-02-27 17:12:38 +0200
committerDave Robillard <dave@drobilla.net>2009-05-03 12:03:15 -0400
commit9c333d003a5e1c922e5e87ae41e5ad11859e396f (patch)
tree4bd538145fec118db7f2d96780a764e425032248 /tests
parent9418a3c2c7854b0d89fba0a186689ddbee04e275 (diff)
downloadgst-plugins-bad-9c333d003a5e1c922e5e87ae41e5ad11859e396f.tar.gz
gst-plugins-bad-9c333d003a5e1c922e5e87ae41e5ad11859e396f.tar.bz2
gst-plugins-bad-9c333d003a5e1c922e5e87ae41e5ad11859e396f.zip
camerabin: change img-done signal parameter from GString* to const gchar*
Don't allow setting filename via img-done signal parameter but force app use filename property. Don't stop capture when setting filename property. Update check unit test based on the change.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/camerabin.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/check/elements/camerabin.c b/tests/check/elements/camerabin.c
index bd8e00ec..7c6187d2 100644
--- a/tests/check/elements/camerabin.c
+++ b/tests/check/elements/camerabin.c
@@ -76,7 +76,7 @@ make_test_seq_file_name (const gchar * base_name)
/* signal handlers */
static gboolean
-capture_done (GstElement * elem, GString * filename, gpointer user_data)
+capture_done (GstElement * elem, const gchar * filename, gpointer user_data)
{
captured_images++;
@@ -90,11 +90,9 @@ capture_done (GstElement * elem, GString * filename, gpointer user_data)
}
if (continuous) {
- g_string_assign (filename, make_test_seq_file_name (BURST_IMAGE_FILENAME));
- /* on needs to modify the passed GString, the code below won't work
- g_object_set (G_OBJECT (elem), "filename",
- make_test_seq_file_name (BURST_IMAGE_FILENAME), NULL);
- */
+ /* Must set filename for new picture */
+ g_object_set (G_OBJECT (elem), "filename",
+ make_test_seq_file_name (BURST_IMAGE_FILENAME), NULL);
}
return continuous;