I'm sure you'll appreciate my getting out of bed for this..
authorWim Taymans <wim.taymans@gmail.com>
Tue, 17 Sep 2002 23:46:52 +0000 (23:46 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 17 Sep 2002 23:46:52 +0000 (23:46 +0000)
Original commit message from CVS:
I'm sure you'll appreciate my getting out of bed for this..

gst/gstprops.c
gst/gstprops.h

index 4902acb..db36867 100644 (file)
@@ -187,7 +187,7 @@ props_find_func (gconstpointer a,
 /* This is implemented as a huge macro because we cannot pass
  * va_list variables by reference on some architectures.
  */
-#define GST_PROPS_ENTRY_FILL(entry, var_args)                                  \
+#define GST_PROPS_ENTRY_FILL(entry, var_args)                                  \
 G_STMT_START {                                                                         \
   entry->propstype = va_arg (var_args, GstPropsType);                          \
                                                                                \
@@ -215,7 +215,8 @@ G_STMT_START {                                                                      \
     case GST_PROPS_STRING_TYPE:                                                        \
       entry->data.string_data.string = g_strdup (va_arg (var_args, gchar*));   \
       break;                                                                   \
-    case GST_PROPS_LIST_TYPE:                                                  \
+    case GST_PROPS_GLIST_TYPE:                                                 \
+      entry->propstype = GST_PROPS_LIST_TYPE;                                  \
       entry->data.list_data.entries = g_list_copy (va_arg (var_args, GList*)); \
       break;                                                                   \
     default:                                                                   \
@@ -511,7 +512,7 @@ gst_props_entry_newv (const gchar *name, va_list var_args)
   entry = gst_props_alloc_entry ();
   entry->propid = g_quark_from_string (name);
   GST_PROPS_ENTRY_FILL (entry, var_args);
-  
+
   return entry;
 }
 
index ec4ae23..29d5201 100644 (file)
@@ -49,6 +49,7 @@ typedef enum {
    GST_PROPS_VAR_TYPE,   /* after this marker start the variable properties */
 
    GST_PROPS_LIST_TYPE,
+   GST_PROPS_GLIST_TYPE,
    GST_PROPS_FLOAT_RANGE_TYPE,
    GST_PROPS_INT_RANGE_TYPE,
 
@@ -59,6 +60,7 @@ typedef enum {
 #define GST_STR_FOURCC(f)              (guint32)(((f)[0])|((f)[1]<<8)|((f)[2]<<16)|((f)[3]<<24))
 
 #define GST_PROPS_LIST(a...)           GST_PROPS_LIST_TYPE,##a,NULL
+#define GST_PROPS_GLIST(a)             GST_PROPS_GLIST_TYPE,(a)
 #define GST_PROPS_INT(a)               GST_PROPS_INT_TYPE,(a)
 #define GST_PROPS_INT_RANGE(a,b)       GST_PROPS_INT_RANGE_TYPE,(a),(b)
 #define GST_PROPS_FLOAT(a)             GST_PROPS_FLOAT_TYPE,(a)