Fix compilation after flags cleanup

This commit is contained in:
Sebastian Dröge 2020-06-30 12:04:50 +03:00
parent 11d17b8de9
commit 48c20471d5
5 changed files with 4 additions and 6 deletions

View file

@ -8,10 +8,9 @@
use super::super::gst_base_sys;
use glib::subclass::prelude::*;
use glib::translate::*;
use glib::subclass::prelude::*;
use gst::prelude::*;
use gst::subclass::prelude::*;
use std::ptr;

View file

@ -2258,7 +2258,7 @@ mod custom_source {
source_pad: pad.clone(),
ghost_pad: ghost_pad.clone().upcast(),
// TODO: We only add the stream type right now
stream: gst::Stream::new(None, None, stream_type, gst::StreamFlags::NONE),
stream: gst::Stream::new(None, None, stream_type, gst::StreamFlags::empty()),
};
state.pads.push(stream);
drop(state);

View file

@ -162,7 +162,7 @@ impl Cea608Overlay {
gst_video::VideoMeta::add(
buffer.get_mut().unwrap(),
gst_video::VideoFrameFlags::NONE,
gst_video::VideoFrameFlags::empty(),
#[cfg(target_endian = "little")]
gst_video::VideoFormat::Bgra,
#[cfg(target_endian = "big")]

View file

@ -229,7 +229,7 @@ impl Dav1dDec {
if video_meta_supported {
gst_video::VideoMeta::add_full(
out_buffer.get_mut().unwrap(),
gst_video::VideoFrameFlags::NONE,
gst_video::VideoFrameFlags::empty(),
info.format(),
info.width(),
info.height(),

View file

@ -408,7 +408,6 @@ impl GifEnc {
{
let trailer_buffer = trailer_buffer.get_mut().unwrap();
trailer_buffer.set_pts(state.last_actual_pts);
trailer_buffer.set_flags(gst::BufferFlags::LAST);
trailer_buffer.set_flags(gst::BufferFlags::NON_DROPPABLE);
}