mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
check: Attempt to fix type-punning warning in the gstiterator test
This commit is contained in:
parent
8b90cf1be1
commit
a39ca4a9c7
1 changed files with 3 additions and 3 deletions
|
@ -176,12 +176,12 @@ GST_START_TEST (test_single)
|
||||||
it = gst_iterator_new_single (GST_TYPE_STRUCTURE, s,
|
it = gst_iterator_new_single (GST_TYPE_STRUCTURE, s,
|
||||||
(GstCopyFunction) gst_structure_copy, (GFreeFunc) gst_structure_free);
|
(GstCopyFunction) gst_structure_copy, (GFreeFunc) gst_structure_free);
|
||||||
|
|
||||||
fail_unless (gst_iterator_next (it, (gpointer *) & i) == GST_ITERATOR_OK);
|
fail_unless (gst_iterator_next (it, (gpointer) & i) == GST_ITERATOR_OK);
|
||||||
fail_unless (strcmp (gst_structure_get_name (s),
|
fail_unless (strcmp (gst_structure_get_name (s),
|
||||||
gst_structure_get_name (i)) == 0);
|
gst_structure_get_name (i)) == 0);
|
||||||
gst_structure_free (i);
|
gst_structure_free (i);
|
||||||
i = NULL;
|
i = NULL;
|
||||||
fail_unless (gst_iterator_next (it, (gpointer *) & i) == GST_ITERATOR_DONE);
|
fail_unless (gst_iterator_next (it, (gpointer) & i) == GST_ITERATOR_DONE);
|
||||||
fail_unless (i == NULL);
|
fail_unless (i == NULL);
|
||||||
|
|
||||||
gst_iterator_free (it);
|
gst_iterator_free (it);
|
||||||
|
@ -190,7 +190,7 @@ GST_START_TEST (test_single)
|
||||||
it = gst_iterator_new_single (GST_TYPE_STRUCTURE, NULL,
|
it = gst_iterator_new_single (GST_TYPE_STRUCTURE, NULL,
|
||||||
(GstCopyFunction) gst_structure_copy, (GFreeFunc) gst_structure_free);
|
(GstCopyFunction) gst_structure_copy, (GFreeFunc) gst_structure_free);
|
||||||
|
|
||||||
fail_unless (gst_iterator_next (it, (gpointer *) & i) == GST_ITERATOR_DONE);
|
fail_unless (gst_iterator_next (it, (gpointer) & i) == GST_ITERATOR_DONE);
|
||||||
fail_unless (i == NULL);
|
fail_unless (i == NULL);
|
||||||
|
|
||||||
gst_iterator_free (it);
|
gst_iterator_free (it);
|
||||||
|
|
Loading…
Reference in a new issue