gst-plugins-rs/gst-plugin-flv/src/lib.rs

38 lines
897 B
Rust
Raw Normal View History

// Copyright (C) 2016-2017 Sebastian Dröge <sebastian@centricular.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
2017-07-31 13:36:35 +00:00
#![crate_type = "cdylib"]
#[macro_use]
extern crate glib;
2016-12-25 11:16:12 +00:00
#[macro_use]
extern crate gstreamer as gst;
extern crate gstreamer_base as gst_base;
#[macro_use]
extern crate lazy_static;
mod bytes;
mod flvdemux;
2018-11-04 18:46:07 +00:00
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
flvdemux::register(plugin)
}
gst_plugin_define!(
rsflv,
"Rust FLV Plugin",
2017-07-31 13:36:35 +00:00
plugin_init,
"1.0",
"MIT/X11",
"rsflv",
"rsflv",
"https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs",
"2016-12-08"
2017-07-31 13:36:35 +00:00
);