Remove compiler warnings.
authorcoderhyme <jhyo.kim@samsung.com>
Fri, 19 May 2017 04:05:26 +0000 (13:05 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Mon, 29 May 2017 23:28:00 +0000 (08:28 +0900)
Change-Id: I7e838a7029b940bc54295e1cb4660b602d5d647d
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.MediaCodec/MediaCodec/MediaCodec.cs
src/Tizen.Multimedia/Common/IMediaBuffer.cs

index be828ae..7768d4d 100644 (file)
@@ -25,10 +25,10 @@ namespace Tizen.Multimedia.MediaCodec
     /// </summary>
     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;
 
index a922efc..ddca032 100644 (file)
@@ -36,6 +36,7 @@ namespace Tizen.Multimedia
         byte this[int index]
         {
             get;
+            set;
         }
         /// <summary>
         /// Gets the size of the buffer, in bytes.
@@ -70,22 +71,6 @@ namespace Tizen.Multimedia
     public interface IMediaBuffer : IReadOnlyBuffer
     {
         /// <summary>
-        /// Gets or sets a value at the specified index.
-        /// </summary>
-        /// <param name="index">The index of the value to get or set.</param>
-        /// <exception cref="ArgumentOutOfRangeException">
-        ///     index is less than zero.
-        ///     <para>-or-</para>
-        ///     index is equal to or greater than <see cref="Length"/>.
-        /// </exception>
-        /// <exception cref="ObjectDisposedException">The object that owns the current buffer already has been disposed of.</exception>
-        /// <exception cref="InvalidOperationException">The buffer is not available. i.e. not writable state.</exception>
-        byte this[int index]
-        {
-            get;
-            set;
-        }
-        /// <summary>
         /// Copies data from the buffer to a byte array.
         /// </summary>
         /// <param name="dest">The array to copy to.</param>
@@ -108,7 +93,6 @@ namespace Tizen.Multimedia
         /// <exception cref="ObjectDisposedException">The object that owns the current buffer already has been disposed of.</exception>
         /// <exception cref="InvalidOperationException">The buffer is not available. i.e. not writable state.</exception>
         void CopyFrom(byte[] source, int startIndex, int length, int offset);
-
     }
 
     /// <summary>
@@ -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);