move vaapi initialization/finalization to MainWindow
don't initializa/finalize vaapi when MainWindow is not created