Skip to content

Commit

Permalink
TTK-27392: Change codecname access
Browse files Browse the repository at this point in the history
  • Loading branch information
albacodina committed Dec 5, 2024
1 parent af94ae2 commit 013770d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/PaellaRepositoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ private function getMultimediaObjectTracks(MultimediaObject $multimediaObject)
$presentationTracks = $multimediaObject->getFilteredTracksWithTags(['presentation/delivery']);

foreach ($presenterTracks as $track) {
if (in_array($track->getVcodec(), $availableCodecs)) {
if (in_array($track->metadata()->codecName(), $availableCodecs)) {
$tracks['display'] = $track;

break;
}
}
foreach ($presentationTracks as $track) {
if (in_array($track->getVcodec(), $availableCodecs)) {
if (in_array($track->metadata()->codecName(), $availableCodecs)) {
$tracks['presentation'] = $track;

break;
Expand Down

0 comments on commit 013770d

Please sign in to comment.