Skip to content

Commit

Permalink
Modified to ignore unsupported bitstream formats
Browse files Browse the repository at this point in the history
  • Loading branch information
dimiden committed Jan 6, 2025
1 parent 21b8755 commit a5eee11
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/projects/publishers/srt/srt_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,18 @@ namespace pub
}
else if (track->GetMediaType() == cmn::MediaType::Data)
{
if (first_data_track == nullptr)
// mpegts::Packetizer only supports ID3v2 format for data track
if (track->GetOriginBitstream() == cmn::BitstreamFormat::ID3v2)
{
first_data_track = track;
if (first_data_track == nullptr)
{
first_data_track = track;
}
}
else
{
logai("SrtStream - Ignore unsupported bitstream format(%s)",
GetBitstreamFormatString(track->GetOriginBitstream()).CStr());
}
}
else
Expand Down

0 comments on commit a5eee11

Please sign in to comment.