private void but_gsttest_Click(object sender, EventArgs e) { System.Threading.ThreadPool.QueueUserWorkItem((a) => { GStreamer.test(); }); }