gl/viv-fb: fix gl plugin hang when run with viv-fb backend
authorHaihua Hu <jared.hu@nxp.com>
Mon, 7 Jun 2021 09:54:46 +0000 (17:54 +0800)
committerHaihua Hu <jared.hu@nxp.com>
Fri, 11 Jun 2021 04:52:40 +0000 (04:52 +0000)
commit58f4217468665a787218627b9a4d5621c594ba5d
treee31583867d2326ab7b7614fcecb09c6d17c27216
parent025a14e7fe7aa207172e306d5fcf67add8646f3d
gl/viv-fb: fix gl plugin hang when run with viv-fb backend

below commit change the window resize thread and cause viv-fb backend
hang, need move resize code after window->open is called. Otherwise,
the resize message will send to a thread that not start running and
window resize call will waiting forever.

Commit:        b887db1efe816c0c28b60a6842fa9005a26c1502
glwindow: fix racy resize updates

Take locks around resize handling and marshall all resizes to the
windowing thread by default.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1195>
gst-libs/gst/gl/egl/gstglcontext_egl.c
gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.h