mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
qt5_avplay: show the main window earlier
The main window must be visible before avplay or a framebuffer filter requests the framebuffer session which goes to Nitpicker, because the parent view of the new Nitpicker view is part of the QNitpickerPlatformWindow object, which is created when the main window becomes visible. If this object does not exist yet, a page fault occurs. Fixes #2187
This commit is contained in:
parent
0d9e566b18
commit
2c3009b2ed
@ -36,6 +36,21 @@ Main_window::Main_window(Genode::Env &env)
|
||||
_input_session_component.event_queue().enabled(true);
|
||||
_ep.manage(&_input_session_component);
|
||||
|
||||
/* add widgets to layout */
|
||||
|
||||
_layout->addWidget(_avplay_widget);
|
||||
_layout->addWidget(_control_bar);
|
||||
|
||||
/*
|
||||
* The main window must be visible before avplay or a framebuffer filter
|
||||
* requests the framebuffer session which goes to Nitpicker, because the
|
||||
* parent view of the new Nitpicker view is part of the
|
||||
* QNitpickerPlatformWindow object, which is created when the main window
|
||||
* becomes visible.
|
||||
*/
|
||||
|
||||
show();
|
||||
|
||||
/* find out which filtering framebuffer services to start and sort them in reverse order */
|
||||
|
||||
static QList<Framebuffer_filter*> framebuffer_filters;
|
||||
@ -65,11 +80,6 @@ Main_window::Main_window(Genode::Env &env)
|
||||
new Filter_framebuffer_service_factory(framebuffer_filter->slave->policy());
|
||||
}
|
||||
|
||||
/* add widgets to layout */
|
||||
|
||||
_layout->addWidget(_avplay_widget);
|
||||
_layout->addWidget(_control_bar);
|
||||
|
||||
/* start avplay */
|
||||
|
||||
Avplay_slave *avplay_slave = new Avplay_slave(_env.pd(), _env.rm(),
|
||||
|
Loading…
Reference in New Issue
Block a user