summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2015-02-19 12:17:15 +0100
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2015-02-19 12:18:50 +0100
commit0ee2183aa5182f72390ebeddadd858929fb2e748 (patch)
treecc08dfdcc238043c18ea0803fde3f00083b7ad0b
parent66e8d3b9a042a3aeef8edd98d28f5ca0c73cba36 (diff)
check: cast element in ASSERT_SET_STATE.
https://bugzilla.gnome.org/show_bug.cgi?id=744777
-rw-r--r--libs/gst/check/gstcheck.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h
index 487382df2..77f4596e5 100644
--- a/libs/gst/check/gstcheck.h
+++ b/libs/gst/check/gstcheck.h
@@ -565,7 +565,7 @@ G_STMT_START { \
} G_STMT_END
#define ASSERT_SET_STATE(element, state, ret) \
-fail_unless (gst_element_set_state (element, \
+fail_unless (gst_element_set_state (GST_ELEMENT(element), \
state) == ret, \
"could not change state to " #state);