Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit cfb57f1

Browse files
committed
Fix regression in Video Encoder.
1 parent 6136a0a commit cfb57f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MMALSharp/Components/EncoderComponents/MMALVideoEncoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public override MMALDownstreamComponent ConfigureOutputPort(int outputPort, MMAL
132132
this.Outputs[outputPort].VideoColorSpace = MMALCameraConfig.VideoColorSpace;
133133
}
134134

135-
if (this.GetType() == typeof(VideoPort) || this.GetType().IsSubclassOf(typeof(VideoPort)))
135+
if (this.Outputs[outputPort].GetType() == typeof(VideoPort) || this.Outputs[outputPort].GetType().IsSubclassOf(typeof(VideoPort)))
136136
{
137137
((VideoPort)this.Outputs[outputPort]).Timeout = this.Timeout;
138138
}

0 commit comments

Comments
 (0)