Avoid double disposing of directshow player