Check added in last checkin was tripping on the ends of the varargs array
authorDavid Schleef <ds@schleef.org>
Sun, 13 Jul 2003 21:04:25 +0000 (21:04 +0000)
committerDavid Schleef <ds@schleef.org>
Sun, 13 Jul 2003 21:04:25 +0000 (21:04 +0000)
Original commit message from CVS:
Check added in last checkin was tripping on the ends of the varargs array

gst/gstprops.c

index db215ec..8d03fd0 100644 (file)
@@ -747,6 +747,8 @@ G_STMT_START {                                                                      \
       entry->propstype = GST_PROPS_LIST_TYPE;                                  \
       entry->data.list_data.entries = g_list_copy (va_arg (var_args, GList*)); \
       break;                                                                   \
+    case GST_PROPS_END_TYPE:                                                   \
+      break;                                                                   \
     default:                                                                   \
       g_warning("attempt to set invalid props type\n");                                \
       break;                                                                   \
@@ -793,6 +795,8 @@ G_STMT_START {                                                                      \
       case GST_PROPS_LIST_TYPE:                                                        \
         *(va_arg (var_args, GList**)) = entry->data.list_data.entries;         \
         break;                                                                 \
+      case GST_PROPS_END_TYPE:                                                 \
+        break;                                                                 \
       default:                                                                 \
         *result = FALSE;                                                       \
         break;                                                                 \