Implement Send/Sync for VideoFrame

Closes #153
This commit is contained in:
Sebastian Dröge 2018-11-26 11:12:45 +01:00
parent ec8727c3ca
commit aea6f79ef9

View file

@ -30,6 +30,9 @@ pub struct VideoFrame<T>(
PhantomData<T>,
);
unsafe impl<T> Send for VideoFrame<T> {}
unsafe impl<T> Sync for VideoFrame<T> {}
impl<T> VideoFrame<T> {
pub fn info(&self) -> &::VideoInfo {
&self.2