// Copyright (C) 2016-2017 Sebastian Dröge // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![crate_type="cdylib"] extern crate url; #[macro_use] extern crate slog; #[macro_use] extern crate gst_plugin; use gst_plugin::plugin::*; use gst_plugin::source::*; use gst_plugin::sink::*; mod filesrc; mod filesink; use filesrc::FileSrc; use filesink::FileSink; fn plugin_init(plugin: &Plugin) -> bool { source_register(plugin, &SourceInfo { name: "rsfilesrc", long_name: "File Source", description: "Reads local files", classification: "Source/File", author: "Sebastian Dröge ", rank: 256 + 100, create_instance: FileSrc::new_boxed, protocols: "file", push_only: false, }); sink_register(plugin, &SinkInfo { name: "rsfilesink", long_name: "File Sink", description: "Writes to local files", classification: "Sink/File", author: "Luis de Bethencourt ", rank: 256 + 100, create_instance: FileSink::new_boxed, protocols: "file", }); true } plugin_define!(b"rsfile\0", b"Rust File Plugin\0", plugin_init, b"1.0\0", b"MIT/X11\0", b"rsfile\0", b"rsfile\0", b"https://github.com/sdroege/rsplugin\0", b"2016-12-08\0");