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 @@ -50,9 +50,18 @@ UTexture2D* UDolbyIOSubsystem::GetTexture(const FString& VideoTrackID)
5050void UDolbyIOSubsystem::BroadcastVideoTrackAdded (const FDolbyIOVideoTrack& VideoTrack)
5151{
5252 DLB_UE_LOG (" Video track added: TrackID=%s ParticipantID=%s" , *VideoTrack.TrackID , *VideoTrack.ParticipantID );
53+ WarnIfVideoTrackSuspicious (VideoTrack.TrackID );
5354 BroadcastEvent (OnVideoTrackAdded, VideoTrack);
5455}
5556
57+ void UDolbyIOSubsystem::WarnIfVideoTrackSuspicious (const FString& VideoTrackID)
58+ {
59+ if (VideoTrackID == " {-}" )
60+ {
61+ DLB_UE_LOG_BASE (Warning, " Suspicious video track ID added, things may not work as expected" );
62+ }
63+ }
64+
5665void UDolbyIOSubsystem::BroadcastVideoTrackEnabled (const FDolbyIOVideoTrack& VideoTrack)
5766{
5867 DLB_UE_LOG (" Video track enabled: TrackID=%s ParticipantID=%s" , *VideoTrack.TrackID , *VideoTrack.ParticipantID );
@@ -125,6 +134,7 @@ void UDolbyIOSubsystem::Handle(const remote_video_track_removed& Event)
125134{
126135 const FDolbyIOVideoTrack VideoTrack = ToFDolbyIOVideoTrack (Event.track );
127136 DLB_UE_LOG (" Video track removed: TrackID=%s ParticipantID=%s" , *VideoTrack.TrackID , *VideoTrack.ParticipantID );
137+ WarnIfVideoTrackSuspicious (VideoTrack.TrackID );
128138
129139 FScopeLock Lock{&VideoSinksLock};
130140 if (std::shared_ptr<DolbyIO::FVideoSink>* Sink = VideoSinks.Find (VideoTrack.TrackID ))
Original file line number Diff line number Diff line change @@ -438,6 +438,7 @@ class DOLBYIO_API UDolbyIOSubsystem : public UGameInstanceSubsystem
438438 void BroadcastVideoTrackAdded (const FDolbyIOVideoTrack& VideoTrack);
439439 void BroadcastVideoTrackEnabled (const FDolbyIOVideoTrack& VideoTrack);
440440 void ProcessBufferedVideoTracks (const FString& ParticipantID);
441+ void WarnIfVideoTrackSuspicious (const FString& VideoTrackID);
441442
442443 void SetLocationUsingFirstPlayer ();
443444 void SetLocalPlayerLocationImpl (const FVector& Location);
You can’t perform that action at this time.
0 commit comments