structuring playcontroller and recordcontroller for gstreamer process / thread