mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-26 01:37:43 +00:00
Merge branch 'dev' into release/1.19.0
This commit is contained in:
commit
66c78847d8
@ -14,7 +14,7 @@ class RemoteRotationVideoProxySink: VideoSink {
|
|||||||
val thisSink = targetSink ?: return
|
val thisSink = targetSink ?: return
|
||||||
val thisFrame = frame ?: return
|
val thisFrame = frame ?: return
|
||||||
|
|
||||||
val modifiedRotation = thisFrame.rotation - rotation
|
val modifiedRotation = (thisFrame.rotation - rotation + 360) % 360
|
||||||
|
|
||||||
val newFrame = VideoFrame(thisFrame.buffer, modifiedRotation, thisFrame.timestampNs)
|
val newFrame = VideoFrame(thisFrame.buffer, modifiedRotation, thisFrame.timestampNs)
|
||||||
thisSink.onFrame(newFrame)
|
thisSink.onFrame(newFrame)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user