From 50d341455100a3b99ba97dc99388784aa6e8bce9 Mon Sep 17 00:00:00 2001 From: coderhyme Date: Fri, 19 May 2017 13:05:26 +0900 Subject: [PATCH] Remove compiler warnings. Change-Id: I7e838a7029b940bc54295e1cb4660b602d5d647d Signed-off-by: coderhyme --- .../MediaCodec/MediaCodec.cs | 8 ++++---- src/Tizen.Multimedia/Common/IMediaBuffer.cs | 20 ++------------------ 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs b/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs index be828ae..7768d4d 100644 --- a/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs +++ b/src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs @@ -25,10 +25,10 @@ namespace Tizen.Multimedia.MediaCodec /// public class MediaCodec : IDisposable { - private static readonly int CodecTypeMask = 0xFFFF; - private static readonly int CodecKindMask = 0x3000; - private static readonly int CodecKindAudio = 0x1000; - private static readonly int CodecKindVideo = 0x2000; + private const int CodecTypeMask = 0xFFFF; + private const int CodecKindMask = 0x3000; +// private const int CodecKindAudio = 0x1000; // Not used + private const int CodecKindVideo = 0x2000; private IntPtr _handle; diff --git a/src/Tizen.Multimedia/Common/IMediaBuffer.cs b/src/Tizen.Multimedia/Common/IMediaBuffer.cs index a922efc..ddca032 100644 --- a/src/Tizen.Multimedia/Common/IMediaBuffer.cs +++ b/src/Tizen.Multimedia/Common/IMediaBuffer.cs @@ -36,6 +36,7 @@ namespace Tizen.Multimedia byte this[int index] { get; + set; } /// /// Gets the size of the buffer, in bytes. @@ -70,22 +71,6 @@ namespace Tizen.Multimedia public interface IMediaBuffer : IReadOnlyBuffer { /// - /// Gets or sets a value at the specified index. - /// - /// The index of the value to get or set. - /// - /// index is less than zero. - /// -or- - /// index is equal to or greater than . - /// - /// The object that owns the current buffer already has been disposed of. - /// The buffer is not available. i.e. not writable state. - byte this[int index] - { - get; - set; - } - /// /// Copies data from the buffer to a byte array. /// /// The array to copy to. @@ -108,7 +93,6 @@ namespace Tizen.Multimedia /// The object that owns the current buffer already has been disposed of. /// The buffer is not available. i.e. not writable state. void CopyFrom(byte[] source, int startIndex, int length, int offset); - } /// @@ -201,7 +185,7 @@ namespace Tizen.Multimedia CopyFrom(source, startIndex, length, 0); } - public void CopyTo(byte[] dest, int startIndex, int length, int offset) + public void CopyTo(byte[] dest, int startIndex, int length, int offset) { _owner.ValidateBufferWritable(this); -- 2.7.4