libs/gst/check/gstcheck.c: make sure we unset caps

Original commit message from CVS:
* libs/gst/check/gstcheck.c: (gst_check_teardown_src_pad):
make sure we unset caps
This commit is contained in:
Thomas Vander Stichele 2006-06-02 16:45:08 +00:00
parent c4b93a9321
commit 53b73f3b5c
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-06-02 Thomas Vander Stichele <thomas at apestaart dot org>
* libs/gst/check/gstcheck.c: (gst_check_teardown_src_pad):
make sure we unset caps
2006-06-02 Michael Smith <msmith@fluendo.com>
* libs/gst/check/gstcheck.c: (gst_check_init),

View file

@ -195,6 +195,9 @@ gst_check_teardown_src_pad (GstElement * element)
gst_pad_unlink (srcpad, sinkpad);
/* caps could have been set, make sure they get unset */
gst_pad_set_caps (srcpad, NULL);
/* pad refs held by both creator and this function (through _get) */
ASSERT_OBJECT_REFCOUNT (sinkpad, "element sinkpad", 2);
gst_object_unref (sinkpad);