structure.foreach raises exception
repro steps
Run https://github.com/gkralik/python-gst-tutorial/blob/master/basic-tutorial-6.py it would complain with TypeError: unknown type GstValueList
.
env
- OS: Ubuntu 23.04
- Gstreamer: 1.22
- Python: 3.11
analysis
In line 35, structure.foreach(print_field, pfx)
raises the exception. Callback function print_field
is never invoked.
expectation
It should work well. If the api (GstStructure.foreach()) is deprecated, the warning message should be printed.
Edited by 蒙金