correct media audio/video detection code
Merge pull request #1052 from unicolet/pullrequest/fixingtests/media/capabilities

correct media audio/video detection code