Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -338,15 +338,15 @@ |
339 | 339 | } |
340 | 340 | |
341 | 341 | function getStreamTypes( $file ) { |
342 | | - $streamTypes = ''; |
| 342 | + $streamTypes = array(); |
343 | 343 | $metadata = $this->unpackMetadata( $file->getMetadata() ); |
344 | 344 | if ( !$metadata || isset( $metadata['error'] ) ) { |
345 | 345 | return false; |
346 | 346 | } |
347 | 347 | foreach ( $metadata['streams'] as $stream ) { |
348 | | - $streamTypes[$stream['type']] = true; |
| 348 | + $streamTypes[] = $stream['type']; |
349 | 349 | } |
350 | | - return array_keys( $streamTypes ); |
| 350 | + return $streamTypes; |
351 | 351 | } |
352 | 352 | |
353 | 353 | function getShortDesc( $file ) { |