Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ppapi / shared_impl / media_stream_audio_track_shared.cc
index ac64954..4a9fdb7 100644 (file)
@@ -11,6 +11,9 @@ bool MediaStreamAudioTrackShared::VerifyAttributes(
     const Attributes& attributes) {
   if (attributes.buffers < 0)
     return false;
+  if (!(attributes.duration == 0 ||
+        (attributes.duration >= 10 && attributes.duration <= 10000)))
+    return false;
   return true;
 }