diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-01 07:27:25 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-01 07:28:43 +0200 |
commit | 66e5d4ee4b0d077e9901a5fdd9808bed873e0c3a (patch) | |
tree | f811ca2710cbdcd330f0e29159f6077a046600a4 /gst/gstiterator.c | |
parent | 86edbb954c0e3ccad0286366e92859109899d572 (diff) | |
download | gstreamer-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.c | 2 |
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); |