Skip to content

Commit

Permalink
Fix bug in RtcVideoSource (#49)
Browse files Browse the repository at this point in the history
* Add UnpublishTrack to local participant, fix LocalTrackPublished event

* Check if there is no delegate attached
  • Loading branch information
Mohelm97 authored Aug 4, 2024
1 parent 3d94ef8 commit 9a5d31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/RtcVideoSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public IEnumerator Update()
TextureReceived?.Invoke(_texture2D);
}

if(TextureReceived.GetInvocationList().Length > 0)
if(TextureReceived != null && TextureReceived.GetInvocationList().Length > 0)
{
LoadToTexture2D(_texture2D, _dest as RenderTexture);
}
Expand Down

0 comments on commit 9a5d31a

Please sign in to comment.