Skip to content

Commit 1b100b2

Browse files
authored
fix: Format (#172)
1 parent 52cbec9 commit 1b100b2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/c2pa/c2pa.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,14 +1109,9 @@ def flush_callback(ctx):
11091109
self._write_cb = WriteCallback(write_callback)
11101110
self._flush_cb = FlushCallback(flush_callback)
11111111

1112-
# Create a placeholder context as we don't actually use the context,
1113-
# but we need having a valid context pointer. Therefore, we create
1114-
# a small buffer and cast it to a StreamContext pointer
1115-
self._context = ctypes.create_string_buffer(1)
1116-
11171112
# Create the stream
11181113
self._stream = _lib.c2pa_create_stream(
1119-
ctypes.cast(self._context, ctypes.POINTER(StreamContext)),
1114+
None,
11201115
self._read_cb,
11211116
self._seek_cb,
11221117
self._write_cb,

0 commit comments

Comments
 (0)