This repository was archived by the owner on Sep 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ void UDolbyIOSubsystem::Initialize(const FString& Token)
219219 const FDolbyIOVideoTrack VideoTrack = ToFDolbyIOVideoTrack (Event.track );
220220 DLB_UE_LOG (" Video track removed: TrackID=%s ParticipantID=%s" , *VideoTrack.TrackID ,
221221 *VideoTrack.ParticipantID );
222+ WarnIfVideoTrackSuspicious (VideoTrack.TrackID );
222223
223224 FScopeLock Lock{&VideoSinksLock};
224225 if (std::shared_ptr<DolbyIO::FVideoSink>* Sink = VideoSinks.Find (VideoTrack.TrackID ))
@@ -632,9 +633,18 @@ void UDolbyIOSubsystem::DisableVideo()
632633void UDolbyIOSubsystem::BroadcastVideoTrackAdded (const FDolbyIOVideoTrack& VideoTrack)
633634{
634635 DLB_UE_LOG (" Video track added: TrackID=%s ParticipantID=%s" , *VideoTrack.TrackID , *VideoTrack.ParticipantID );
636+ WarnIfVideoTrackSuspicious (VideoTrack.TrackID );
635637 BroadcastEvent (OnVideoTrackAdded, VideoTrack);
636638}
637639
640+ void UDolbyIOSubsystem::WarnIfVideoTrackSuspicious (const FString& VideoTrackID)
641+ {
642+ if (VideoTrackID == " {-}" )
643+ {
644+ DLB_UE_WARN (" Suspicious video track ID added, things may not work as expected" );
645+ }
646+ }
647+
638648void UDolbyIOSubsystem::BroadcastVideoTrackEnabled (const FDolbyIOVideoTrack& VideoTrack)
639649{
640650 DLB_UE_LOG (" Video track enabled: TrackID=%s ParticipantID=%s" , *VideoTrack.TrackID , *VideoTrack.ParticipantID );
Original file line number Diff line number Diff line change @@ -442,6 +442,7 @@ class DOLBYIO_API UDolbyIOSubsystem : public UGameInstanceSubsystem
442442 void BroadcastVideoTrackAdded (const FDolbyIOVideoTrack& VideoTrack);
443443 void BroadcastVideoTrackEnabled (const FDolbyIOVideoTrack& VideoTrack);
444444 void ProcessBufferedVideoTracks (const FString& ParticipantID);
445+ void WarnIfVideoTrackSuspicious (const FString& VideoTrackID);
445446
446447 void SetLocationUsingFirstPlayer ();
447448 void SetLocalPlayerLocationImpl (const FVector& Location);
You can’t perform that action at this time.
0 commit comments