diff options
author | Ederson de Souza <ederson.desouza@intel.com> | 2020-01-27 15:16:12 -0800 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-04-30 19:21:37 +0000 |
commit | 443c01e119fa49455742364fc19f58d0ad8efbc5 (patch) | |
tree | ec79cf9618bed5d74d03966de1bf492ac1b72976 /tests | |
parent | b769af0c4fc0f364130b55c5ec2d8ea71f350400 (diff) | |
download | gstreamer-plugins-bad-443c01e119fa49455742364fc19f58d0ad8efbc5.tar.gz |
clockselect: Remove non-sense comment
Commentary appears to assume `gst_harness_find_element` return value was
"transfer none", but it is not the case. So, element must be unrefed
before the end.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1009>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/clockselect.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/check/elements/clockselect.c b/tests/check/elements/clockselect.c index 206d6780a..485f50fd7 100644 --- a/tests/check/elements/clockselect.c +++ b/tests/check/elements/clockselect.c @@ -39,8 +39,6 @@ GST_START_TEST (test_clock_select_realtime_clock) g_object_get (G_OBJECT (clock), "clock-type", &clock_type, NULL); fail_unless_equals_uint64 (clock_type, GST_CLOCK_TYPE_REALTIME); - /* Unref this element to shut up valgrind. But it looks weird, maybe - * some funny harness bug due clockselect being a bin? */ gst_object_unref (element); gst_object_unref (clock); gst_harness_teardown (h); @@ -65,7 +63,6 @@ GST_START_TEST (test_clock_select_monotonic_clock) g_object_get (G_OBJECT (clock), "clock-type", &clock_type, NULL); fail_unless_equals_uint64 (clock_type, GST_CLOCK_TYPE_MONOTONIC); - /* See comment on test_clock_select_realtime_clock about this unref */ gst_object_unref (element); gst_object_unref (clock); gst_harness_teardown (h); @@ -89,7 +86,6 @@ GST_START_TEST (test_clock_select_properties) g_object_get (G_OBJECT (element), "ptp-domain", &domain, NULL); fail_unless_equals_uint64 (domain, 2); - /* See comment on test_clock_select_realtime_clock about this unref */ gst_object_unref (element); gst_harness_teardown (h); } |