aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-03-08 02:24:30 -0500
committerGitHub <noreply@github.com>2017-03-08 02:24:30 -0500
commit23010f2980381a4b56e05620d4604cafc0e00043 (patch)
tree418b4ad6964c84d17ff9c33fa88b0e1a8bcacd34 /MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs
parent0ac0a09c806112ce82dcd23f43c7df9ff8b5531d (diff)
parent314b84ae9ef5a692144b0a3a178ddcbd393c9fb9 (diff)
Merge pull request #2516 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs')
-rw-r--r--MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs b/MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs
deleted file mode 100644
index 5dd0336421..0000000000
--- a/MediaBrowser.Server.Startup.Common/LiveTv/TunerHosts/SatIp/Rtcp/SourceDescriptionItem.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- Copyright (C) <2007-2016> <Kay Diefenthal>
-
- SatIp.RtspSample is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- SatIp.RtspSample is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with SatIp.RtspSample. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp.Rtcp
-{
- /// <summary>
- /// The class that describes a source description item.
- /// </summary>
- public class SourceDescriptionItem
- {
- /// <summary>
- /// Get the type.
- /// </summary>
- public int Type { get; private set; }
- /// <summary>
- /// Get the text.
- /// </summary>
- public string Text { get; private set; }
-
- /// <summary>
- /// Get the length of the item.
- /// </summary>
- public int ItemLength { get { return (Text.Length + 2); } }
-
- /// <summary>
- /// Initialize a new instance of the SourceDescriptionItem class.
- /// </summary>
- public SourceDescriptionItem() { }
-
- /// <summary>
- /// Unpack the data in a packet.
- /// </summary>
- /// <param name="buffer">The buffer containing the packet.</param>
- /// <param name="offset">The offset to the first byte of the packet within the buffer.</param>
- /// <returns>An ErrorSpec instance if an error occurs; null otherwise.</returns>
- public void Process(byte[] buffer, int offset)
- {
- Type = buffer[offset];
- if (Type != 0)
- {
- int length = buffer[offset + 1];
- Text = Utils.ConvertBytesToString(buffer, offset + 2, length);
- }
- }
- }
-}