As MediaSource is a ref counted object we can use OwnPtr.