convert live555media to c