Make WordPress Core


Ignore:
Timestamp:
10/10/2021 01:15:16 AM (3 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Revert [51900] for now to investigate test failures.

See #54162.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ID3/module.audio-video.matroska.php

    r51900 r51901  
    225225     * @var bool
    226226     */
    227     public $hide_clusters    = true;
     227    public static $hide_clusters    = true;
    228228
    229229    /**
     
    232232     * @var bool
    233233     */
    234     public $parse_whole_file = false;
     234    public static $parse_whole_file = false;
    235235
    236236    /*
     
    587587
    588588                    while ($this->getEBMLelement($element_data, $top_element['end'])) {
    589                         if ($element_data['id'] != EBML_ID_CLUSTER || !$this->hide_clusters) { // collect clusters only if required
     589                        if ($element_data['id'] != EBML_ID_CLUSTER || !self::$hide_clusters) { // collect clusters only if required
    590590                            $info['matroska']['segments'][] = $element_data;
    591591                        }
     
    619619                                                break;
    620620                                            }
    621                                             if (($seek_entry['target_id'] != EBML_ID_CLUSTER) || !$this->hide_clusters) { // collect clusters only if required
     621                                            if (($seek_entry['target_id'] != EBML_ID_CLUSTER) || !self::$hide_clusters) { // collect clusters only if required
    622622                                                $info['matroska']['seek'][] = $seek_entry;
    623623                                            }
     
    906906
    907907                            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 ($this->hide_clusters) { // do not parse cues if hide clusters is "ON" till they point to clusters anyway
     908                                if (self::$hide_clusters) { // do not parse cues if hide clusters is "ON" till they point to clusters anyway
    909909                                    $this->current_offset = $element_data['end'];
    910910                                    break;
     
    12471247                                    $this->current_offset = $subelement['end'];
    12481248                                }
    1249                                 if (!$this->hide_clusters) {
     1249                                if (!self::$hide_clusters) {
    12501250                                    $info['matroska']['cluster'][] = $cluster_entry;
    12511251                                }
    12521252
    12531253                                // check to see if all the data we need exists already, if so, break out of the loop
    1254                                 if (!$this->parse_whole_file) {
     1254                                if (!self::$parse_whole_file) {
    12551255                                    if (isset($info['matroska']['info']) && is_array($info['matroska']['info'])) {
    12561256                                        if (isset($info['matroska']['tracks']['tracks']) && is_array($info['matroska']['tracks']['tracks'])) {
Note: See TracChangeset for help on using the changeset viewer.