video: Don't require the input buffers of the video codec frames to be writable

This commit is contained in:
Sebastian Dröge 2019-05-25 14:13:06 +02:00
parent bc082ba56c
commit 4798b4bcc9

View file

@ -139,7 +139,7 @@ impl<'a> VideoCodecFrame<'a> {
if ptr.is_null() {
None
} else {
Some(gst::BufferRef::from_mut_ptr(ptr))
Some(gst::BufferRef::from_ptr(ptr))
}
}
}