Skip to content

Commit

Permalink
Safeguard count call
Browse files Browse the repository at this point in the history
  • Loading branch information
Phencys committed Jul 11, 2024
1 parent 068bfe1 commit 1f7aff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils/impl/MPDHandler/loadSegmentUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
);


if (!count($currentTemplate)) {
if (!$currentTemplate || !count($currentTemplate)) {
$adaptationUrls[] = array($baseUrls[$adaptationIdx][$representationIdx]);
continue;
}
Expand Down

0 comments on commit 1f7aff9

Please sign in to comment.