mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
Return exit code from gio::Application::run()
from main()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1065>
This commit is contained in:
parent
62bfc545d3
commit
c7209dbd4f
4 changed files with 10 additions and 8 deletions
|
@ -196,7 +196,7 @@ fn create_ui(app: >k::Application) {
|
|||
});
|
||||
}
|
||||
|
||||
fn main() {
|
||||
fn main() -> glib::ExitCode {
|
||||
gst::init().unwrap();
|
||||
gtk::init().unwrap();
|
||||
|
||||
|
@ -206,5 +206,5 @@ fn main() {
|
|||
let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE);
|
||||
|
||||
app.connect_activate(create_ui);
|
||||
app.run();
|
||||
app.run()
|
||||
}
|
||||
|
|
|
@ -158,7 +158,7 @@ fn create_window(app: >k::Application) {
|
|||
window.show();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
fn main() -> glib::ExitCode {
|
||||
let app = gtk::Application::new(
|
||||
Some("gtk-plugins-rs.gtk-livesync"),
|
||||
gio::ApplicationFlags::FLAGS_NONE,
|
||||
|
@ -171,5 +171,5 @@ fn main() {
|
|||
});
|
||||
|
||||
app.connect_activate(create_window);
|
||||
app.run();
|
||||
app.run()
|
||||
}
|
||||
|
|
|
@ -326,7 +326,7 @@ fn create_ui(app: >k::Application) {
|
|||
});
|
||||
}
|
||||
|
||||
fn main() {
|
||||
fn main() -> glib::ExitCode {
|
||||
gst::init().unwrap();
|
||||
gtk::init().unwrap();
|
||||
|
||||
|
@ -336,5 +336,5 @@ fn main() {
|
|||
let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE);
|
||||
|
||||
app.connect_activate(create_ui);
|
||||
app.run();
|
||||
app.run()
|
||||
}
|
||||
|
|
|
@ -141,7 +141,7 @@ fn create_ui(app: >k::Application) {
|
|||
});
|
||||
}
|
||||
|
||||
fn main() {
|
||||
fn main() -> glib::ExitCode {
|
||||
gst::init().unwrap();
|
||||
gtk::init().unwrap();
|
||||
|
||||
|
@ -150,9 +150,11 @@ fn main() {
|
|||
let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE);
|
||||
|
||||
app.connect_activate(create_ui);
|
||||
app.run();
|
||||
let res = app.run();
|
||||
|
||||
unsafe {
|
||||
gst::deinit();
|
||||
}
|
||||
|
||||
res
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue