summaryrefslogtreecommitdiff
path: root/voctocore/lib/helper.py
blob: ac9bfe57794581ff0bba02a86d489f36b7e09955 (plain)
  1. from gi.repository import Gst
  2. def iteratorHelper(it):
  3. while True:
  4. result, value = it.next()
  5. if result == Gst.IteratorResult.DONE:
  6. break
  7. if result != Gst.IteratorResult.OK:
  8. raise IteratorError(result)
  9. yield value