Skip to content

Commit b348aac

Browse files
committed
Fix #2425
1 parent b484ef4 commit b348aac

5 files changed

Lines changed: 15 additions & 12 deletions

File tree

‎CHANGELOG.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ We are operating with `semantic versioning <https://semver.org>`_.
2828
- Bug fixes (PATCH) go here.
2929
- $CHANGE by :gh-user:`mikeboers` in (:pr:`1`).
3030

31+
32+
v19.0.1
33+
-------
34+
35+
Fixes:
36+
37+
38+
3139
v19.0.0
3240
-------
3341

‎av/about.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "19.0.0"
1+
__version__ = "19.0.1pre0"

‎av/stream.pxd‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,14 @@ cimport libav as lib
33
from av.codec.context cimport CodecContext
44
from av.container.core cimport Container
55
from av.frame cimport Frame
6-
from av.index cimport IndexEntries
76
from av.packet cimport Packet
87

98

109
cdef class Stream:
1110
cdef lib.AVStream *ptr
12-
13-
# Stream attributes.
1411
cdef readonly Container container
1512
cdef readonly dict metadata
16-
17-
# CodecContext attributes.
1813
cdef readonly CodecContext codec_context
19-
20-
cdef readonly IndexEntries index_entries
21-
22-
# Private API.
2314
cdef void _init(self, Container, lib.AVStream*, CodecContext)
2415
cdef bint _is_open(self)
2516
cdef void _assert_open(self)

‎av/stream.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def _init(
116116
) -> cython.void:
117117
self.container = container
118118
self.ptr = stream
119-
self.index_entries = wrap_index_entries(self)
120119

121120
self.codec_context = codec_context
122121

@@ -187,6 +186,10 @@ def _finalize_for_output(self) -> cython.void:
187186
)
188187
)
189188

189+
@property
190+
def index_entries(self):
191+
return wrap_index_entries(self)
192+
190193
@property
191194
def id(self):
192195
"""

‎av/stream.pyi‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class Stream:
4444
codec: Codec
4545
codec_context: CodecContext
4646
metadata: dict[str, str]
47-
index_entries: IndexEntries
47+
@property
48+
def index_entries(self) -> IndexEntries: ...
4849
id: int
4950
profiles: list[str]
5051
profile: str | None

0 commit comments

Comments
 (0)