Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…dy#1827) Embedded cover art, and other tags exposed to us as type `Gst.Sample`, were causing memory leaks when converted to plain Python types using `GstBuffer.extract_dup()`. `extract_dup()` expects the caller to free the memory it allocates but older versions of the python3-gi don't seem to do this. The workaround is to access samples using `GstMemory` methods instead. This issue was present on Buster 10 systems (python-gi 3.30.4) but not on Ubuntu 20.04 (python-gi 3.36.0). Mopidy memory usage after scanning 2861 tracks: Without fix: 163.2MB With fix: 54.1MB
- Loading branch information