Commit 38ca1ef3 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Port gst-plugin-togglerecord to new subclassing API

parent 40426a2c
......@@ -5,11 +5,9 @@ authors = ["Sebastian Dröge <sebastian@centricular.com>"]
license = "LGPL-2.1+"
[dependencies]
glib = { git = "https://github.com/gtk-rs/glib" }
gstreamer = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
glib = { git = "https://github.com/gtk-rs/glib", features = ["subclassing"] }
gstreamer = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["subclassing"] }
gstreamer-video = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
gobject-subclass = { git = "https://github.com/gtk-rs/gobject-subclass" }
gst-plugin = { path = "../gst-plugin" }
gtk = { git = "https://github.com/gtk-rs/gtk", features = ["v3_6"], optional = true }
gio = { git = "https://github.com/gtk-rs/gio", optional = true }
parking_lot = "0.6"
......
......@@ -17,10 +17,8 @@
#![crate_type = "cdylib"]
extern crate glib;
extern crate gobject_subclass;
#[macro_use]
extern crate gst_plugin;
extern crate glib;
#[macro_use]
extern crate gstreamer as gst;
extern crate gstreamer_video as gst_video;
......@@ -33,14 +31,14 @@ fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
togglerecord::register(plugin)
}
plugin_define!(
b"togglerecord\0",
b"Toggle Record Plugin\0",
gst_plugin_define!(
"togglerecord",
"Toggle Record Plugin",
plugin_init,
b"0.1.0\0",
b"LGPL\0",
b"togglerecord\0",
b"togglerecord\0",
b"https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs\0",
b"2017-12-04\0"
"0.1.0",
"LGPL",
"togglerecord",
"togglerecord",
"https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs",
"2017-12-04"
);
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment