summaryrefslogtreecommitdiff
path: root/tests/examples/camerabin2
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-08-21 00:10:10 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-08-21 00:10:10 +0100
commit77377c55a29b4058d27b10dabf6907113cabc0cd (patch)
treea6aab5efe6283f22765c7697625c278f9a8c8c2d /tests/examples/camerabin2
parent2483c82bd75bea521b9d5721c994a191d26c55a9 (diff)
examples: GST_TAG_DATE -> GST_TAG_DATE_TIME
In camerabin2 example.
Diffstat (limited to 'tests/examples/camerabin2')
-rw-r--r--tests/examples/camerabin2/gst-camerabin2-test.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/examples/camerabin2/gst-camerabin2-test.c b/tests/examples/camerabin2/gst-camerabin2-test.c
index e5ad385ac..00b9fa25e 100644
--- a/tests/examples/camerabin2/gst-camerabin2-test.c
+++ b/tests/examples/camerabin2/gst-camerabin2-test.c
@@ -853,17 +853,15 @@ static void
set_metadata (GstElement * camera)
{
GstTagSetter *setter = GST_TAG_SETTER (camera);
- GTimeVal time = { 0, 0 };
+ GstDateTime *datetime;
gchar *desc_str;
- GDate *date = g_date_new ();
- g_get_current_time (&time);
- g_date_set_time_val (date, &time);
+ datetime = gst_date_time_new_now_local_time ();
desc_str = g_strdup_printf ("captured by %s", g_get_real_name ());
gst_tag_setter_add_tags (setter, GST_TAG_MERGE_REPLACE,
- GST_TAG_DATE, date,
+ GST_TAG_DATE_TIME, datetime,
GST_TAG_DESCRIPTION, desc_str,
GST_TAG_TITLE, "gst-camerabin-test capture",
GST_TAG_GEO_LOCATION_LONGITUDE, 1.0,
@@ -873,7 +871,7 @@ set_metadata (GstElement * camera)
GST_TAG_DEVICE_MODEL, "gst-camerabin-test model", NULL);
g_free (desc_str);
- g_date_free (date);
+ gst_date_time_unref (datetime);
}
static gboolean