diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 18:42:58 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 20:46:08 +0300 |
commit | f045099fc135d54a74b7a918e8ffcce5352ad3a7 (patch) | |
tree | 3ec9ec3beb0bdafb8b16fbf106c89354c5a0c3ea /video | |
parent | 211cd095d69726a3a2208feddd921d05b60c6540 (diff) |
Fix GObject type names, GStreamer debug category names and element factory names
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/198
Diffstat (limited to 'video')
30 files changed, 34 insertions, 34 deletions
diff --git a/video/cdg/src/cdgdec/imp.rs b/video/cdg/src/cdgdec/imp.rs index 141002a4..d88212c8 100644 --- a/video/cdg/src/cdgdec/imp.rs +++ b/video/cdg/src/cdgdec/imp.rs @@ -30,7 +30,7 @@ pub struct CdgDec { #[glib::object_subclass] impl ObjectSubclass for CdgDec { - const NAME: &'static str = "CdgDec"; + const NAME: &'static str = "GstCdgDec"; type Type = super::CdgDec; type ParentType = gst_video::VideoDecoder; } diff --git a/video/cdg/src/cdgparse/imp.rs b/video/cdg/src/cdgparse/imp.rs index 4cf32b5f..1e036bf4 100644 --- a/video/cdg/src/cdgparse/imp.rs +++ b/video/cdg/src/cdgparse/imp.rs @@ -36,7 +36,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for CdgParse { - const NAME: &'static str = "CdgParse"; + const NAME: &'static str = "GstCdgParse"; type Type = super::CdgParse; type ParentType = gst_base::BaseParse; } diff --git a/video/closedcaption/src/ccdetect/imp.rs b/video/closedcaption/src/ccdetect/imp.rs index d8fcf5b3..b54b27e5 100644 --- a/video/closedcaption/src/ccdetect/imp.rs +++ b/video/closedcaption/src/ccdetect/imp.rs @@ -220,7 +220,7 @@ impl CCDetect { #[glib::object_subclass] impl ObjectSubclass for CCDetect { - const NAME: &'static str = "CCDetect"; + const NAME: &'static str = "GstCCDetect"; type Type = super::CCDetect; type ParentType = gst_base::BaseTransform; } diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index dccaf568..96d4be30 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -516,7 +516,7 @@ impl Cea608Overlay { #[glib::object_subclass] impl ObjectSubclass for Cea608Overlay { - const NAME: &'static str = "RsCea608Overlay"; + const NAME: &'static str = "GstCea608Overlay"; type Type = super::Cea608Overlay; type ParentType = gst::Element; diff --git a/video/closedcaption/src/cea608tojson/imp.rs b/video/closedcaption/src/cea608tojson/imp.rs index d3bfb8e8..e54d0ad2 100644 --- a/video/closedcaption/src/cea608tojson/imp.rs +++ b/video/closedcaption/src/cea608tojson/imp.rs @@ -951,7 +951,7 @@ impl Cea608ToJson { #[glib::object_subclass] impl ObjectSubclass for Cea608ToJson { - const NAME: &'static str = "Cea608ToJson"; + const NAME: &'static str = "GstCea608ToJson"; type Type = super::Cea608ToJson; type ParentType = gst::Element; diff --git a/video/closedcaption/src/cea608tott/imp.rs b/video/closedcaption/src/cea608tott/imp.rs index c7231643..b6fd7ce9 100644 --- a/video/closedcaption/src/cea608tott/imp.rs +++ b/video/closedcaption/src/cea608tott/imp.rs @@ -373,7 +373,7 @@ impl Cea608ToTt { #[glib::object_subclass] impl ObjectSubclass for Cea608ToTt { - const NAME: &'static str = "Cea608ToTt"; + const NAME: &'static str = "GstCea608ToTt"; type Type = super::Cea608ToTt; type ParentType = gst::Element; diff --git a/video/closedcaption/src/jsontovtt/imp.rs b/video/closedcaption/src/jsontovtt/imp.rs index 3f28c416..11e9f323 100644 --- a/video/closedcaption/src/jsontovtt/imp.rs +++ b/video/closedcaption/src/jsontovtt/imp.rs @@ -531,7 +531,7 @@ impl JsonToVtt { #[glib::object_subclass] impl ObjectSubclass for JsonToVtt { - const NAME: &'static str = "JsonToVtt"; + const NAME: &'static str = "GstJsonToVtt"; type Type = super::JsonToVtt; type ParentType = gst::Element; diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs index d6112de9..3d1e24de 100644 --- a/video/closedcaption/src/mcc_enc/imp.rs +++ b/video/closedcaption/src/mcc_enc/imp.rs @@ -415,7 +415,7 @@ impl MccEnc { #[glib::object_subclass] impl ObjectSubclass for MccEnc { - const NAME: &'static str = "RsMccEnc"; + const NAME: &'static str = "GstMccEnc"; type Type = super::MccEnc; type ParentType = gst::Element; diff --git a/video/closedcaption/src/mcc_parse/imp.rs b/video/closedcaption/src/mcc_parse/imp.rs index 16d0558f..4c23a599 100644 --- a/video/closedcaption/src/mcc_parse/imp.rs +++ b/video/closedcaption/src/mcc_parse/imp.rs @@ -1068,7 +1068,7 @@ impl MccParse { #[glib::object_subclass] impl ObjectSubclass for MccParse { - const NAME: &'static str = "RsMccParse"; + const NAME: &'static str = "GstMccParse"; type Type = super::MccParse; type ParentType = gst::Element; diff --git a/video/closedcaption/src/scc_enc/imp.rs b/video/closedcaption/src/scc_enc/imp.rs index 4fa33191..a6825ea8 100644 --- a/video/closedcaption/src/scc_enc/imp.rs +++ b/video/closedcaption/src/scc_enc/imp.rs @@ -349,7 +349,7 @@ impl SccEnc { #[glib::object_subclass] impl ObjectSubclass for SccEnc { - const NAME: &'static str = "RsSccEnc"; + const NAME: &'static str = "GstSccEnc"; type Type = super::SccEnc; type ParentType = gst::Element; diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs index 9aafb49c..61a02563 100644 --- a/video/closedcaption/src/scc_parse/imp.rs +++ b/video/closedcaption/src/scc_parse/imp.rs @@ -947,7 +947,7 @@ impl SccParse { #[glib::object_subclass] impl ObjectSubclass for SccParse { - const NAME: &'static str = "RsSccParse"; + const NAME: &'static str = "GstSccParse"; type Type = super::SccParse; type ParentType = gst::Element; diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs index ef8852c7..56e8ecd3 100644 --- a/video/closedcaption/src/transcriberbin/imp.rs +++ b/video/closedcaption/src/transcriberbin/imp.rs @@ -529,7 +529,7 @@ impl TranscriberBin { #[glib::object_subclass] impl ObjectSubclass for TranscriberBin { - const NAME: &'static str = "RsTranscriberBin"; + const NAME: &'static str = "GstTranscriberBin"; type Type = super::TranscriberBin; type ParentType = gst::Bin; diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index ee89f42a..b7e9a82c 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -959,7 +959,7 @@ impl TtToCea608 { #[glib::object_subclass] impl ObjectSubclass for TtToCea608 { - const NAME: &'static str = "TtToCea608"; + const NAME: &'static str = "GstTtToCea608"; type Type = super::TtToCea608; type ParentType = gst::Element; diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs index 87b2636f..8a8e2196 100644 --- a/video/closedcaption/src/tttojson/imp.rs +++ b/video/closedcaption/src/tttojson/imp.rs @@ -185,7 +185,7 @@ impl ElementImpl for TtToJson { #[glib::object_subclass] impl ObjectSubclass for TtToJson { - const NAME: &'static str = "RsTtToJson"; + const NAME: &'static str = "GstTtToJson"; type Type = super::TtToJson; type ParentType = gst::Element; diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index 1fa7ea8a..cdaabd1d 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -475,7 +475,7 @@ fn video_output_formats() -> impl IntoIterator<Item = gst_video::VideoFormat> { #[glib::object_subclass] impl ObjectSubclass for Dav1dDec { - const NAME: &'static str = "RsDav1dDec"; + const NAME: &'static str = "GstDav1dDec"; type Type = super::Dav1dDec; type ParentType = gst_video::VideoDecoder; } diff --git a/video/dav1d/src/dav1ddec/mod.rs b/video/dav1d/src/dav1ddec/mod.rs index b439c693..8d427128 100644 --- a/video/dav1d/src/dav1ddec/mod.rs +++ b/video/dav1d/src/dav1ddec/mod.rs @@ -20,7 +20,7 @@ glib::wrapper! { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), - "rsdav1ddec", + "dav1ddec", gst::Rank::Primary + 1, Dav1dDec::static_type(), ) diff --git a/video/ffv1/src/ffv1dec/imp.rs b/video/ffv1/src/ffv1dec/imp.rs index 6fcfd6b4..086be543 100644 --- a/video/ffv1/src/ffv1dec/imp.rs +++ b/video/ffv1/src/ffv1dec/imp.rs @@ -291,7 +291,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for Ffv1Dec { - const NAME: &'static str = "Ffv1Dec"; + const NAME: &'static str = "GstFfv1Dec"; type Type = super::Ffv1Dec; type ParentType = gst_video::VideoDecoder; } diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 043fa114..57ca4a49 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -137,7 +137,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for GifEnc { - const NAME: &'static str = "GifEnc"; + const NAME: &'static str = "GstGifEnc"; type Type = super::GifEnc; type ParentType = gst_video::VideoEncoder; } diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index ee65609d..c4abc0e5 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -60,7 +60,7 @@ impl Drop for PaintableSink { #[glib::object_subclass] impl ObjectSubclass for PaintableSink { - const NAME: &'static str = "Gtk4PaintableSink"; + const NAME: &'static str = "GstGtk4PaintableSink"; type Type = super::PaintableSink; type ParentType = gst_video::VideoSink; } diff --git a/video/gtk4/src/sink/paintable/imp.rs b/video/gtk4/src/sink/paintable/imp.rs index ce1b3f55..f768f5ab 100644 --- a/video/gtk4/src/sink/paintable/imp.rs +++ b/video/gtk4/src/sink/paintable/imp.rs @@ -36,7 +36,7 @@ pub struct SinkPaintable { #[glib::object_subclass] impl ObjectSubclass for SinkPaintable { - const NAME: &'static str = "Gtk4PaintableSinkPaintable"; + const NAME: &'static str = "GstGtk4PaintableSinkPaintable"; type Type = super::SinkPaintable; type ParentType = glib::Object; type Interfaces = (gdk::Paintable,); diff --git a/video/hsv/src/hsvdetector/imp.rs b/video/hsv/src/hsvdetector/imp.rs index 5386a22f..19a18033 100644 --- a/video/hsv/src/hsvdetector/imp.rs +++ b/video/hsv/src/hsvdetector/imp.rs @@ -69,7 +69,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for HsvDetector { - const NAME: &'static str = "HsvDetector"; + const NAME: &'static str = "GstHsvDetector"; type Type = super::HsvDetector; type ParentType = gst_video::VideoFilter; } diff --git a/video/hsv/src/hsvfilter/imp.rs b/video/hsv/src/hsvfilter/imp.rs index f198f5a0..4ea13719 100644 --- a/video/hsv/src/hsvfilter/imp.rs +++ b/video/hsv/src/hsvfilter/imp.rs @@ -65,7 +65,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for HsvFilter { - const NAME: &'static str = "HsvFilter"; + const NAME: &'static str = "GstHsvFilter"; type Type = super::HsvFilter; type ParentType = gst_video::VideoFilter; } diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs index 851677d8..5c655127 100644 --- a/video/png/src/pngenc/imp.rs +++ b/video/png/src/pngenc/imp.rs @@ -167,7 +167,7 @@ pub struct PngEncoder { #[glib::object_subclass] impl ObjectSubclass for PngEncoder { - const NAME: &'static str = "PngEncoder"; + const NAME: &'static str = "GstRsPngEnc"; type Type = super::PngEncoder; type ParentType = gst_video::VideoEncoder; } diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs index cefa894e..34aa7ac0 100644 --- a/video/rav1e/src/rav1enc/imp.rs +++ b/video/rav1e/src/rav1enc/imp.rs @@ -234,7 +234,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for Rav1Enc { - const NAME: &'static str = "Rav1Enc"; + const NAME: &'static str = "GstRav1Enc"; type Type = super::Rav1Enc; type ParentType = gst_video::VideoEncoder; } diff --git a/video/videofx/src/border/imp.rs b/video/videofx/src/border/imp.rs index f3fb220e..7e0b771f 100644 --- a/video/videofx/src/border/imp.rs +++ b/video/videofx/src/border/imp.rs @@ -270,7 +270,7 @@ impl RoundedCorners { #[glib::object_subclass] impl ObjectSubclass for RoundedCorners { - const NAME: &'static str = "RoundedCorners"; + const NAME: &'static str = "GstRoundedCorners"; type Type = super::RoundedCorners; type ParentType = gst_base::BaseTransform; } diff --git a/video/videofx/tests/colordetect.rs b/video/videofx/tests/colordetect.rs index 96cea95d..caab5a0f 100644 --- a/video/videofx/tests/colordetect.rs +++ b/video/videofx/tests/colordetect.rs @@ -14,7 +14,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstvideofx::plugin_register_static().expect("Failed to register videofx plugin"); + gstrsvideofx::plugin_register_static().expect("Failed to register rsvideofx plugin"); }); } diff --git a/video/videofx/tests/videocompare.rs b/video/videofx/tests/videocompare.rs index ee4ec40e..2af33cae 100644 --- a/video/videofx/tests/videocompare.rs +++ b/video/videofx/tests/videocompare.rs @@ -7,7 +7,7 @@ // SPDX-License-Identifier: MPL-2.0 use gst::prelude::*; -use gstvideofx::{HashAlgorithm, VideoCompareMessage}; +use gstrsvideofx::{HashAlgorithm, VideoCompareMessage}; fn init() { use std::sync::Once; @@ -15,7 +15,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstvideofx::plugin_register_static().expect("Failed to register videofx plugin"); + gstrsvideofx::plugin_register_static().expect("Failed to register videofx plugin"); }); } diff --git a/video/webp/src/dec/imp.rs b/video/webp/src/dec/imp.rs index 645f71e7..8e853385 100644 --- a/video/webp/src/dec/imp.rs +++ b/video/webp/src/dec/imp.rs @@ -19,9 +19,9 @@ use std::marker::PhantomData; static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| { gst::DebugCategory::new( - "webpdec-rs", + "rswebpdec", gst::DebugColorFlags::empty(), - Some("WebP decoder"), + Some("Rust WebP decoder"), ) }); @@ -267,7 +267,7 @@ impl WebPDec { #[glib::object_subclass] impl ObjectSubclass for WebPDec { - const NAME: &'static str = "RsWebPDec"; + const NAME: &'static str = "GstRsWebPDec"; type Type = super::WebPDec; type ParentType = gst::Element; diff --git a/video/webp/src/dec/mod.rs b/video/webp/src/dec/mod.rs index 9bbd1830..e0f4f319 100644 --- a/video/webp/src/dec/mod.rs +++ b/video/webp/src/dec/mod.rs @@ -8,7 +8,7 @@ // Example command-line: // -// gst-launch-1.0 filesrc location=animated.webp ! webpdec-rs ! videoconvert ! autovideosink +// gst-launch-1.0 filesrc location=animated.webp ! rswebpdec ! videoconvert ! autovideosink use gst::glib; use gst::prelude::*; @@ -22,7 +22,7 @@ glib::wrapper! { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), - "webpdec-rs", + "rswebpdec", gst::Rank::Primary, WebPDec::static_type(), ) diff --git a/video/webp/tests/webpdec.rs b/video/webp/tests/webpdec.rs index 95451faf..de560a08 100644 --- a/video/webp/tests/webpdec.rs +++ b/video/webp/tests/webpdec.rs @@ -23,7 +23,7 @@ fn init() { fn test_decode() { init(); let data = include_bytes!("animated.webp").as_ref(); - let mut h = gst_check::Harness::new("webpdec-rs"); + let mut h = gst_check::Harness::new("rswebpdec"); h.set_src_caps_str("image/webp"); |