We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52cbec9 commit 1b100b2Copy full SHA for 1b100b2
src/c2pa/c2pa.py
@@ -1109,14 +1109,9 @@ def flush_callback(ctx):
1109
self._write_cb = WriteCallback(write_callback)
1110
self._flush_cb = FlushCallback(flush_callback)
1111
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
-
1117
# Create the stream
1118
self._stream = _lib.c2pa_create_stream(
1119
- ctypes.cast(self._context, ctypes.POINTER(StreamContext)),
+ None,
1120
self._read_cb,
1121
self._seek_cb,
1122
self._write_cb,
0 commit comments