Class: Gst::Iterator

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/gir_ffi-gst/iterator.rb

Overview

Overrides for GstIterator

Instance Method Summary collapse

Instance Method Details

#eachObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/gir_ffi-gst/iterator.rb', line 10

def each
  resync
  continue = true
  foreach do |item, _ud|
    break unless continue

    continue = false
    yield item.get_value
    continue = true
  end
end