libs/gst/check/gstcheck.h: add an assert for setting state to avoid lots of repetitive code in the future

Original commit message from CVS:
2006-05-10  Thomas Vander Stichele  <thomas at apestaart dot org>

* libs/gst/check/gstcheck.h:
add an assert for setting state to avoid lots of repetitive code
in the future
This commit is contained in:
Thomas Vander Stichele 2006-05-10 15:49:30 +00:00
parent 46de58b721
commit 7ebd6a126d
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-05-10 Thomas Vander Stichele <thomas at apestaart dot org>
* libs/gst/check/gstcheck.h:
add an assert for setting state to avoid lots of repetitive code
in the future
2006-05-10 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstvalue.c: (gst_value_serialize_flags):

View file

@ -257,6 +257,10 @@ G_STMT_START { \
name " refcount is %d instead of %d", rc, value);\
} G_STMT_END
#define ASSERT_SET_STATE(element, state, ret) \
fail_unless (gst_element_set_state (element, \
state) == ret, \
"could not change state to " #state);
#endif /* __GST_CHECK_H__ */