# HG changeset patch # User renatofilho # Date 1183499124 -3600 # Node ID 47de5c5976bffc5fc38adecab1befd623abf59f5 # Parent b4480dd29fc8cdd4aa86a9e480c61fce66857802 [svn r778] more properties type supported diff -r b4480dd29fc8 -r 47de5c5976bf gmyth-stream/gmemcoder/src/gmencoder.c --- a/gmyth-stream/gmemcoder/src/gmencoder.c Tue Jul 03 21:45:39 2007 +0100 +++ b/gmyth-stream/gmemcoder/src/gmencoder.c Tue Jul 03 22:45:24 2007 +0100 @@ -224,10 +224,24 @@ case G_TYPE_INT: g_value_set_int(&p, atoi(prop_val)); break; + case G_TYPE_ULONG: + g_value_set_ulong (&p, atol(prop_val)); + break; case G_TYPE_STRING: g_value_set_string(&p, prop_val); break; + case G_TYPE_BOOLEAN: + g_value_set_boolean(&p, (gboolean) atoi (prop_val)); + break; + case G_TYPE_DOUBLE: + g_value_set_double(&p, atof (prop_val)); + break; + case G_TYPE_FLOAT: + g_value_set_float(&p, (float) atof (prop_val)); + break; default: + g_warning ("Property %s of type %s. Not supported", + prop_name, g_type_name (s->value_type)); return; }