Skip to content

Commit

Permalink
Merge pull request #716 from nlsdvl/development
Browse files Browse the repository at this point in the history
fix #715 undefined mpdHandler in getFrameRate.php
  • Loading branch information
Phencys authored Dec 11, 2024
2 parents 2a0d841 + d5fa879 commit e8211c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMAF/impl/determineCMAFMediaProfiles.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

global $logger;
global $logger, $mpdHandler;

$compatibleBrands = $xml->getElementsByTagName("ftyp")->item(0)->getAttribute("compatibleBrands");
$hdlrType = $xml->getElementsByTagName("hdlr")->item(0)->getAttribute("handler_type");
Expand Down
2 changes: 1 addition & 1 deletion Utils/impl/MPDHandler/getFrameRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$framerate = 0;

$periods = $mpdHandler->getElementsByTagName("Period");
$periods = $this->dom->getElementsByTagName("Period");

if ($period >= count($periods)) {
return null;
Expand Down

0 comments on commit e8211c6

Please sign in to comment.