diff --git a/RtspClientSharp/Rtsp/RtspClientInternal.cs b/RtspClientSharp/Rtsp/RtspClientInternal.cs index ce05c35..d86479e 100644 --- a/RtspClientSharp/Rtsp/RtspClientInternal.cs +++ b/RtspClientSharp/Rtsp/RtspClientInternal.cs @@ -226,7 +226,7 @@ private async Task SetupTrackAsync(RtspMediaTrackInfo track, CancellationToken t else { int channelCounter = _streamsMap.Count; - rtpChannelNumber = ++channelCounter; + rtpChannelNumber = channelCounter; rtcpChannelNumber = ++channelCounter; setupRequest = _requestMessageFactory.CreateSetupTcpInterleavedRequest(track.TrackName, diff --git a/RtspClientSharp/RtspClientSharp.csproj b/RtspClientSharp/RtspClientSharp.csproj index aad1d73..e914d9c 100644 --- a/RtspClientSharp/RtspClientSharp.csproj +++ b/RtspClientSharp/RtspClientSharp.csproj @@ -18,7 +18,7 @@ false https://github.com/BogdanovKirill/RtspClientSharp/blob/master/Images/package_icon.png?raw=true Copyright ©2018 Kirill Bogdanov - 1.2.0 + 1.2.1 -Small performance optimizations are made -H264 parsing speed is increased (avoid constant memory copying when possible) -Multi-threaded bugs are fixed