diff options
author | Torsten Schoenfeld <kaffeetisch@gmx.de> | 2006-08-28 08:35:31 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-08-28 08:35:31 +0000 |
commit | 7fc02489e3a5f215890db920fe5db3cada3989fa (patch) | |
tree | c9c31abee46310ac868e55ab0b4a504dc8f56f6f /tests | |
parent | 4ff1d2085283f2eb0eac283a991f9a4c177bd2f3 (diff) |
Check for NULL before _reffing the bus. Fixes #353122.
Original commit message from CVS:
Patch by: Torsten Schoenfeld <kaffeetisch at gmx dot de>
* gst/gstelement.c: (gst_element_get_bus):
* tests/check/gst/gstelement.c: (GST_START_TEST):
Check for NULL before _reffing the bus. Fixes #353122.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/gst/gstelement.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/check/gst/gstelement.c b/tests/check/gst/gstelement.c index 9ff576dfd..22de7dd54 100644 --- a/tests/check/gst/gstelement.c +++ b/tests/check/gst/gstelement.c @@ -82,9 +82,14 @@ GST_END_TEST; GST_START_TEST (test_error_no_bus) { GstElement *e; + GstBus *bus; e = gst_element_factory_make ("fakesrc", "source"); + /* get the bus, should be NULL */ + bus = gst_element_get_bus (e); + fail_if (bus != NULL); + /* I don't want errors shown */ gst_debug_set_default_threshold (GST_LEVEL_NONE); |