summaryrefslogtreecommitdiff
path: root/gst/gstiterator.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-01 07:27:25 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-01 07:28:43 +0200
commit66e5d4ee4b0d077e9901a5fdd9808bed873e0c3a (patch)
treef811ca2710cbdcd330f0e29159f6077a046600a4 /gst/gstiterator.c
parent86edbb954c0e3ccad0286366e92859109899d572 (diff)
downloadgstreamer-66e5d4ee4b0d077e9901a5fdd9808bed873e0c3a.tar.gz
iterator: Fix single iterator for NULL objects and non-GTypeInstance objects
Fixes bug #593719.
Diffstat (limited to 'gst/gstiterator.c')
-rw-r--r--gst/gstiterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstiterator.c b/gst/gstiterator.c
index bdf5d5ec4f..ad5d708fde 100644
--- a/gst/gstiterator.c
+++ b/gst/gstiterator.c
@@ -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);