Skip to content

Commit

Permalink
Remove some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ngraziano committed Apr 4, 2024
1 parent 3b19ab0 commit 88e4edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RTSP/Messages/RTSPHeaderUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static IList<string> ParsePublicHeader(string? headerValue)
{
return [];
}
return headerValue.Split(',').Select(m => m.Trim()).ToList();
return headerValue!.Split(',').Select(m => m.Trim()).ToList();
}

public static IList<string> ParsePublicHeader(RtspResponse response)
Expand Down
2 changes: 1 addition & 1 deletion RtspClientExample/RTSPClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ private void HandleDescribeResponse(RtspResponse message)
SdpFile sdp_data;
using (StreamReader sdp_stream = new(message.Data.AsStream()))
{
sdp_data = SdpFile.Read(sdp_stream);
sdp_data = SdpFile.ReadLoose(sdp_stream);
}

// For old sony cameras, we need to use the control uri from the sdp
Expand Down

0 comments on commit 88e4edd

Please sign in to comment.