Closed tgc04042 closed 10 months ago
I guess flutter must call XInitThreads()
before any x11 call because it's x11 Display is also used by vaapi decoder in decoder thread. But I don't see it in flutter engine source code.
What about adding this at the bottom of fvp_plugin.cc? I'm not sure if it works because it will be called too early.
__attribute__((constructor, used)) static void init_xlib() {
XInitThreads();
}
or you can try to add XInitThreads();
in the first line of int main(int argc, char** argv)
in main.cc
You can also print the return value of XInitThreads
最新发布的版本加了这部分代码,你试下有没有效果
I'm sorry for the late relpy..
That error no longer appear! Thank you for solving this problem!!
Hello, First of all, thank you for your service. I used fvp 0.3.0 for video player in linux(ubuntu 20.04) desktop platform.
when I played a video, The app works fine, but sometimes I get errors and the app dies
Why does this error occur? I used video_player sample code