iterator: Fix single iterator for NULL objects and non-GTypeInstance objects

Fixes bug #593719.
This commit is contained in:
Sebastian Dröge 2009-09-01 07:27:25 +02:00
parent 86edbb954c
commit 66e5d4ee4b

View file

@ -724,7 +724,7 @@ gst_iterator_new_single (GType type, gpointer object, GstCopyFunction copy,
result = (GstSingleObjectIterator *)
gst_iterator_new (sizeof (GstSingleObjectIterator),
G_TYPE_FROM_INSTANCE (object), NULL, &_single_object_dummy_cookie,
type, NULL, &_single_object_dummy_cookie,
(GstIteratorNextFunction) gst_single_object_iterator_iterator_next, NULL,
(GstIteratorResyncFunction) gst_single_object_iterator_resync,
(GstIteratorFreeFunction) gst_single_object_iterator_free);