Commit 1f2d549a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Sebastian Dröge

togglerecord: Register plugin as a static plugin in the example

Instead of doing complicated things with the plugin path and the
parent 833b16de
Pipeline #46072 passed with stages
in 34 minutes and 14 seconds
......@@ -23,9 +23,10 @@ use gio::prelude::*;
extern crate gstreamer as gst;
use gst::prelude::*;
extern crate gsttogglerecord;
extern crate gtk;
use gtk::prelude::*;
use std::cell::RefCell;
use std::env;
......@@ -346,28 +347,7 @@ fn main() {
use std::path::Path;
let mut path = Path::new("target/debug");
if !path.exists() {
path = Path::new("../target/debug");
use std::path::Path;
let mut path = Path::new("target/release");
if !path.exists() {
path = Path::new("../target/release");
gsttogglerecord::plugin_register_static().expect("Failed to register togglerecord plugin");
let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap();
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