gtk4paintablesink: Add env var to fullscreen window

For testing purposes with e.g. gst-launch.
This commit is contained in:
Robert Mader 2024-04-26 13:48:05 +02:00
parent 927c3fcdb6
commit aff536b6f9

View file

@ -713,6 +713,9 @@ impl PaintableSink {
window.set_child(Some(&picture));
}
window.set_default_size(640, 480);
if std::env::var("GST_GTK4_WINDOW_FULLSCREEN").as_deref() == Ok("1") {
window.set_fullscreened(true);
}
window.connect_close_request({
let self_ = self_.clone();