tests: don't set NULL caps
This commit is contained in:
parent
c24df0e50f
commit
62b43b3bcd
@ -118,9 +118,6 @@ notgst_check_teardown_src_pad2 (GstElement * element,
|
|||||||
|
|
||||||
gst_pad_unlink (srcpad, sinkpad);
|
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) */
|
/* pad refs held by both creator and this function (through _get) */
|
||||||
ASSERT_OBJECT_REFCOUNT (sinkpad, "element sinkpad", 2);
|
ASSERT_OBJECT_REFCOUNT (sinkpad, "element sinkpad", 2);
|
||||||
gst_object_unref (sinkpad);
|
gst_object_unref (sinkpad);
|
||||||
@ -179,7 +176,7 @@ buffer_is_all_black (GstBuffer * buf, GstCaps * caps)
|
|||||||
|
|
||||||
for (x = 0; x < w; ++x) {
|
for (x = 0; x < w; ++x) {
|
||||||
if (ptr[x] != 0x00) {
|
if (ptr[x] != 0x00) {
|
||||||
GST_LOG ("non-black pixel at (x,y) %d,%d", x, y);
|
GST_LOG ("non-black pixel (%d) at (x,y) %d,%d", ptr[x], x, y);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user