Removed redundant code and fixed toxav

Toxav codec actions being called when call is inactive caused segfault.