Added error parameter in KwsMedia

Change-Id: I41ffb0b3c5099dd74957250048b0f3a819dc6114