Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions direct-rialto/AampRialtoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,11 +806,18 @@ bool AampRialtoPlayer::SendCopy(
{
if (!source->isAttached())
{
AAMPLOG_INFO("Setting stream caps for mediaType=%d", static_cast<int>(mediaType));
// For HLS-TS the codec format is all that Rialto requires to set the stream caps.
MediaCodecInfo codecInfo{};
codecInfo.mCodecFormat = toGstStreamOutputFormat(source->format());
SetStreamCaps(mediaType, std::move(codecInfo));
// Attaching all sources to avoid deadlock with muxed HLS-TS which uses only one injection thread
// For HLS-TS, the codec format is all that Rialto requires to set the stream caps.
for (const auto& source2: m_sources)
{
if (source2 && !source2->isAttached())
{
AAMPLOG_INFO("Setting stream caps for mediaType=%d", static_cast<int>(source2->mediaType()));
MediaCodecInfo codecInfo{};
codecInfo.mCodecFormat = toGstStreamOutputFormat(source2->format());
SetStreamCaps(source2->mediaType(), std::move(codecInfo));
}
}
}

auto sharedBuffer =
Expand Down