Removed redundant code and fixed toxav codec actions being called when call inactive