libs/gst/check/gstcheck.c: make sure we unset caps
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 2 Jun 2006 16:45:08 +0000 (16:45 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 2 Jun 2006 16:45:08 +0000 (16:45 +0000)
Original commit message from CVS:
* libs/gst/check/gstcheck.c: (gst_check_teardown_src_pad):
make sure we unset caps

ChangeLog
libs/gst/check/gstcheck.c

index 346437d..67a9801 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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),
index 0d39567..20ddc42 100644 (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);