fix segfault when using unsafe get_props

Original commit message from CVS:
fix segfault when using unsafe get_props
This commit is contained in:
Benjamin Otte 2002-05-04 18:12:11 +00:00
parent aef003a55c
commit 19bd060114

View file

@ -193,11 +193,11 @@ G_STMT_START { \
#define GST_PROPS_ENTRY_READ(entry, var_args, safe, result) \
G_STMT_START { \
GstPropsType propstype = va_arg (var_args, GstPropsType); \
\
*result = TRUE; \
\
if (safe) { \
GstPropsType propstype = va_arg (var_args, GstPropsType); \
if (propstype != entry->propstype) { \
*result = FALSE; \
} \