Skip to content
Snippets Groups Projects
Commit 50cffb0f authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

video/timecode: Use mem::ManuallyDrop to prevent a double unref of the daily jam

As ffi::GstVideoTimeCode implements Copy, assignments don't move it out
of the passed in value but just copy it. This doesn't increase the
reference count of the daily jam, still runs the Drop impl of the passed
in value to decrease the daily jam and then causes a second unref of it
later when the returned value is dropped.

Fixes gstreamer/gstreamer-rs#310
parent fb412d0c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment