mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
fix segfault when using unsafe get_props
Original commit message from CVS: fix segfault when using unsafe get_props
This commit is contained in:
parent
aef003a55c
commit
19bd060114
1 changed files with 1 additions and 1 deletions
|
@ -193,11 +193,11 @@ G_STMT_START { \
|
||||||
|
|
||||||
#define GST_PROPS_ENTRY_READ(entry, var_args, safe, result) \
|
#define GST_PROPS_ENTRY_READ(entry, var_args, safe, result) \
|
||||||
G_STMT_START { \
|
G_STMT_START { \
|
||||||
GstPropsType propstype = va_arg (var_args, GstPropsType); \
|
|
||||||
\
|
\
|
||||||
*result = TRUE; \
|
*result = TRUE; \
|
||||||
\
|
\
|
||||||
if (safe) { \
|
if (safe) { \
|
||||||
|
GstPropsType propstype = va_arg (var_args, GstPropsType); \
|
||||||
if (propstype != entry->propstype) { \
|
if (propstype != entry->propstype) { \
|
||||||
*result = FALSE; \
|
*result = FALSE; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in a new issue