- Timestamp:
- 11/26/2021 03:04:10 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/module.audio-video.matroska.php
r51901 r52254 225 225 * @var bool 226 226 */ 227 public static$hide_clusters = true;227 public $hide_clusters = true; 228 228 229 229 /** … … 232 232 * @var bool 233 233 */ 234 public static$parse_whole_file = false;234 public $parse_whole_file = false; 235 235 236 236 /* … … 587 587 588 588 while ($this->getEBMLelement($element_data, $top_element['end'])) { 589 if ($element_data['id'] != EBML_ID_CLUSTER || ! self::$hide_clusters) { // collect clusters only if required589 if ($element_data['id'] != EBML_ID_CLUSTER || !$this->hide_clusters) { // collect clusters only if required 590 590 $info['matroska']['segments'][] = $element_data; 591 591 } … … 619 619 break; 620 620 } 621 if (($seek_entry['target_id'] != EBML_ID_CLUSTER) || ! self::$hide_clusters) { // collect clusters only if required621 if (($seek_entry['target_id'] != EBML_ID_CLUSTER) || !$this->hide_clusters) { // collect clusters only if required 622 622 $info['matroska']['seek'][] = $seek_entry; 623 623 } … … 906 906 907 907 case EBML_ID_CUES: // A top-level element to speed seeking access. All entries are local to the segment. Should be mandatory for non "live" streams. 908 if ( self::$hide_clusters) { // do not parse cues if hide clusters is "ON" till they point to clusters anyway908 if ($this->hide_clusters) { // do not parse cues if hide clusters is "ON" till they point to clusters anyway 909 909 $this->current_offset = $element_data['end']; 910 910 break; … … 1247 1247 $this->current_offset = $subelement['end']; 1248 1248 } 1249 if (! self::$hide_clusters) {1249 if (!$this->hide_clusters) { 1250 1250 $info['matroska']['cluster'][] = $cluster_entry; 1251 1251 } 1252 1252 1253 1253 // check to see if all the data we need exists already, if so, break out of the loop 1254 if (! self::$parse_whole_file) {1254 if (!$this->parse_whole_file) { 1255 1255 if (isset($info['matroska']['info']) && is_array($info['matroska']['info'])) { 1256 1256 if (isset($info['matroska']['tracks']['tracks']) && is_array($info['matroska']['tracks']['tracks'])) {
Note: See TracChangeset
for help on using the changeset viewer.