Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -78,7 +78,22 @@
Loading
78 78
    buf = sample.get_buffer()
79 79
    if not buf:
80 80
        return None
81 -
    return buf.extract_dup(0, buf.get_size())
81 +
    return _extract_buffer_data(buf)
82 +
83 +
84 +
# Fix for https://github.com/mopidy/mopidy/issues/1827
85 +
# Using GstBuffer.extract_dup() is a memory leak in versions of PyGObject prior
86 +
# to v3.36.0. As a workaround we use the GstMemory APIs instead.
87 +
def _extract_buffer_data(buf):
88 +
    mem = buf.get_all_memory()
89 +
    if not mem:
90 +
        return None
91 +
    success, info = mem.map(Gst.MapFlags.READ)
92 +
    if not success:
93 +
        return None
94 +
    data = info.data
95 +
    mem.unmap(info)
96 +
    return data
82 97
83 98
84 99
# TODO: split based on "stream" and "track" based conversion? i.e. handle data
Files Coverage
mopidy 76.64%
Project Totals (55 files) 76.64%
2227
Build #2227 -
2223
Build #2223 -

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading