Skip to content

Commit 42b3cc0

Browse files
author
Bogdanov Kirill
committed
Small bug fix: RTP/RTCP channel counter should start from 0, not from 1
1 parent 78ad2c6 commit 42b3cc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RtspClientSharp/Rtsp/RtspClientInternal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private async Task SetupTrackAsync(RtspMediaTrackInfo track, CancellationToken t
226226
else
227227
{
228228
int channelCounter = _streamsMap.Count;
229-
rtpChannelNumber = ++channelCounter;
229+
rtpChannelNumber = channelCounter;
230230
rtcpChannelNumber = ++channelCounter;
231231

232232
setupRequest = _requestMessageFactory.CreateSetupTcpInterleavedRequest(track.TrackName,

RtspClientSharp/RtspClientSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
1919
<PackageIconUrl>https://github.com/BogdanovKirill/RtspClientSharp/blob/master/Images/package_icon.png?raw=true</PackageIconUrl>
2020
<Copyright>Copyright ©2018 Kirill Bogdanov</Copyright>
21-
<Version>1.2.0</Version>
21+
<Version>1.2.1</Version>
2222
<PackageReleaseNotes>-Small performance optimizations are made
2323
-H264 parsing speed is increased (avoid constant memory copying when possible)
2424
-Multi-threaded bugs are fixed

0 commit comments

Comments
 (0)