fixed https://github.com/schmunk42/p3media/pull/30 and https://github.com/schmunk42/p3media/issues/32