[longomatch] Stringify the device id
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Stringify the device id
- Date: Wed, 16 Jun 2010 19:58:33 +0000 (UTC)
commit ab27fe501547f8b93634e8b3bbf4ffce716acb0f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Jun 16 21:53:01 2010 +0200
Stringify the device id
libcesarplayer/src/gst-camera-capturer.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index 7efb4c5..dd2208a 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -1562,7 +1562,13 @@ gst_camera_capturer_enum_devices (gchar * device_name)
for (i = 0; i < va->n_values; ++i) {
GValue *v = g_value_array_get_nth (va, i);
- list = g_list_append (list, g_strdup(g_value_get_string (v)));
+ GValue valstr = {0, };
+
+ g_value_init (&valstr, G_TYPE_STRING);
+ if (!g_value_transform (v, &valstr))
+ continue;
+ list = g_list_append (list, g_value_dup_string (&valstr));
+ g_value_unset (&valstr);
}
g_value_array_free (va);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]