WordPress at a glance
function is not described

getid3_matroska::getDefaultStreamInfo() private WP 1.0

{} It's a method of the class: getid3_matroska{}

No Hooks.

Return

Array. Nothing.

Usage

$result = getid3_matroska::getDefaultStreamInfo( $streams );
$streams(array) (required)
-

Code of getid3_matroska::getDefaultStreamInfo() WP 5.7.2

<?php
private static function getDefaultStreamInfo($streams)
{
	$stream = array();
	foreach (array_reverse($streams) as $stream) {
		if ($stream['default']) {
			break;
		}
	}

	$unset = array('default', 'name');
	foreach ($unset as $u) {
		if (isset($stream[$u])) {
			unset($stream[$u]);
		}
	}

	$info = $stream;
	$info['streams'] = $streams;

	return $info;
}