protected function filterHLS($config)
    {
        // Do not allow any outputs that have a type of "segmented" or "playlist"
        if (empty($config['playlist'])) {
            return array_filter($config, function ($output) {
                return !(isset($output['type']) && in_array($output['type'], ['segmented', 'playlist']));
            });
        }

        // Else, passthrough the config
        return $config;
    }