From 48c20471d5c2fd877ee045510b252536e2fdf144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 30 Jun 2020 12:04:50 +0300 Subject: [PATCH] Fix compilation after flags cleanup --- utils/fallbackswitch/src/base/subclass/aggregator.rs | 3 +-- utils/fallbackswitch/src/fallbacksrc.rs | 2 +- video/closedcaption/src/cea608overlay.rs | 2 +- video/dav1d/src/dav1ddec.rs | 2 +- video/gif/src/gifenc.rs | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/utils/fallbackswitch/src/base/subclass/aggregator.rs b/utils/fallbackswitch/src/base/subclass/aggregator.rs index 19aa071e..7a38db36 100644 --- a/utils/fallbackswitch/src/base/subclass/aggregator.rs +++ b/utils/fallbackswitch/src/base/subclass/aggregator.rs @@ -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; diff --git a/utils/fallbackswitch/src/fallbacksrc.rs b/utils/fallbackswitch/src/fallbacksrc.rs index 7425076d..aea8c69f 100644 --- a/utils/fallbackswitch/src/fallbacksrc.rs +++ b/utils/fallbackswitch/src/fallbacksrc.rs @@ -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); diff --git a/video/closedcaption/src/cea608overlay.rs b/video/closedcaption/src/cea608overlay.rs index 0ce2c9aa..2127c742 100644 --- a/video/closedcaption/src/cea608overlay.rs +++ b/video/closedcaption/src/cea608overlay.rs @@ -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")] diff --git a/video/dav1d/src/dav1ddec.rs b/video/dav1d/src/dav1ddec.rs index ef75829f..062268b0 100644 --- a/video/dav1d/src/dav1ddec.rs +++ b/video/dav1d/src/dav1ddec.rs @@ -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(), diff --git a/video/gif/src/gifenc.rs b/video/gif/src/gifenc.rs index 966fd3f6..8c3f9cef 100644 --- a/video/gif/src/gifenc.rs +++ b/video/gif/src/gifenc.rs @@ -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); }