gstreamer1.0-rs icon indicating copy to clipboard operation
gstreamer1.0-rs copied to clipboard

Buffer (and other miniobject) COW writability not mapped very well

Open sdroege opened this issue 7 years ago • 0 comments

You might want to take a look at https://github.com/sdroege/rsplugin/blob/master/gst-plugin/src/buffer.c and https://github.com/sdroege/rsplugin/blob/master/gst-plugin/src/miniobject.rs . I'm implementing the miniobject COW via something Arc-style.

With that you will only ever be able to get a &mut Buffer if the buffer is actually writable, and have to explicitly handle that instead of waiting for runtime errors or worse if make_writable() is not called manually.

sdroege avatar Feb 03 '17 17:02 sdroege