Skip to content

Commit

Permalink
Small bug fix: RTP/RTCP channel counter should start from 0, not from 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanov Kirill committed Aug 15, 2018
1 parent 78ad2c6 commit 42b3cc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RtspClientSharp/Rtsp/RtspClientInternal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion RtspClientSharp/RtspClientSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<PackageIconUrl>https://github.com/BogdanovKirill/RtspClientSharp/blob/master/Images/package_icon.png?raw=true</PackageIconUrl>
<Copyright>Copyright ©2018 Kirill Bogdanov</Copyright>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<PackageReleaseNotes>-Small performance optimizations are made
-H264 parsing speed is increased (avoid constant memory copying when possible)
-Multi-threaded bugs are fixed
Expand Down

0 comments on commit 42b3cc0

Please sign in to comment.