[Multimedia] Fixed the StreamRecorderAudioOptions.Codec to throw an exception when... 49/150849/1
authorcoderhyme <jhyo.kim@samsung.com>
Tue, 19 Sep 2017 02:38:56 +0000 (11:38 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Tue, 19 Sep 2017 02:38:56 +0000 (11:38 +0900)
Change-Id: I4d63402207bfd4d9b64bbc7d7681b14b459a055a
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.StreamRecorder/StreamRecorder/StreamRecorderAudioOptions.cs

index 911cf34..3aabb7d 100644 (file)
@@ -83,6 +83,11 @@ namespace Tizen.Multimedia
             {
                 ValidationUtil.ValidateEnum(typeof(RecorderAudioCodec), value, nameof(value));
 
+                if (value == RecorderAudioCodec.None)
+                {
+                    throw new ArgumentException("Audio codec can't be None.");
+                }
+
                 _codec = value;
             }
         }