mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
46de58b721
commit
7ebd6a126d
2 changed files with 10 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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__ */
|
||||
|
||||
|
|
Loading…
Reference in a new issue