summaryrefslogtreecommitdiffstats
path: root/tests/check/elements
diff options
context:
space:
mode:
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>2009-02-27 17:12:38 +0200
committerRené Stadler <rene.stadler@nokia.com>2009-04-16 15:19:20 +0300
commit65ddcd6d5d5413bcf0d54af627de5939a5dd9e8f (patch)
treee990232e94775878d98b3dcb1d19be3d6b842265 /tests/check/elements
parentd8ba5624ce2320639311600b486bf83f40d534de (diff)
downloadgst-plugins-bad-65ddcd6d5d5413bcf0d54af627de5939a5dd9e8f.tar.gz
gst-plugins-bad-65ddcd6d5d5413bcf0d54af627de5939a5dd9e8f.tar.bz2
gst-plugins-bad-65ddcd6d5d5413bcf0d54af627de5939a5dd9e8f.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/check/elements')
-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;