Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-06-30 12:04:50 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-06-30 12:04:50 +0300
commit48c20471d5c2fd877ee045510b252536e2fdf144 (patch)
tree7000d06e3654aee010099eba03c028588e57e3af
parent11d17b8de97a6a7f499846425c11e07e81bbab89 (diff)
Fix compilation after flags cleanup
-rw-r--r--utils/fallbackswitch/src/base/subclass/aggregator.rs3
-rw-r--r--utils/fallbackswitch/src/fallbacksrc.rs2
-rw-r--r--video/closedcaption/src/cea608overlay.rs2
-rw-r--r--video/dav1d/src/dav1ddec.rs2
-rw-r--r--video/gif/src/gifenc.rs1
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 19aa071ee..7a38db36c 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 7425076da..aea8c69f7 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 0ce2c9aa3..2127c7421 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 ef75829f7..062268b0f 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 966fd3f6a..8c3f9cefe 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);
}